/* CSS Layout for jiliko vip - All classes use pg41- prefix */
/* Mobile-first responsive design with turquoise color scheme */

/* Root variables and reset */
:root {
  --pg41-primary: #40E0D0;
  --pg41-secondary: #AFEEEE;
  --pg41-dark: #2C2C2C;
  --pg41-light: #98FB98;
  --pg41-accent: #E0FFFF;
  --pg41-text: #FFFFFF;
  --pg41-text-dark: #1A1A1A;
  --pg41-shadow: rgba(64, 224, 208, 0.3);
  --pg41-overlay: rgba(0, 0, 0, 0.85);
  font-size: 62.5%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  background: linear-gradient(135deg, var(--pg41-dark) 0%, #1A3A3A 100%);
  color: var(--pg41-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header styles */
.pg41-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #1A3A3A 0%, var(--pg41-dark) 100%);
  box-shadow: 0 4px 12px rgba(64, 224, 208, 0.2);
  z-index: 1000;
  padding: 1rem 1.5rem;
}

.pg41-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.pg41-logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pg41-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 8px var(--pg41-shadow);
}

.pg41-site-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg41-primary);
  text-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
  display: none;
}

.pg41-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg41-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-height: 44px;
  line-height: 1.2;
}

.pg41-btn-register {
  background: linear-gradient(135deg, var(--pg41-primary) 0%, #30D0C0 100%);
  color: var(--pg41-text-dark);
  box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
}

.pg41-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(64, 224, 208, 0.6);
}

.pg41-btn-login {
  background: transparent;
  color: var(--pg41-primary);
  border: 2px solid var(--pg41-primary);
}

.pg41-btn-login:hover {
  background: var(--pg41-primary);
  color: var(--pg41-dark);
}

.pg41-menu-toggle {
  background: transparent;
  border: none;
  color: var(--pg41-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu */
.pg41-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: linear-gradient(180deg, #1A3A3A 0%, var(--pg41-dark) 100%);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 8rem 2rem 2rem;
}

.pg41-menu-open {
  right: 0;
}

.pg41-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--pg41-overlay);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pg41-overlay-active {
  opacity: 1;
  visibility: visible;
}

.pg41-menu-list {
  list-style: none;
}

.pg41-menu-item {
  margin-bottom: 1rem;
}

.pg41-menu-link {
  display: block;
  padding: 1.5rem;
  color: var(--pg41-text);
  text-decoration: none;
  font-size: 1.6rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.pg41-menu-link:hover,
.pg41-active-link {
  background: rgba(64, 224, 208, 0.1);
  border-left-color: var(--pg41-primary);
  color: var(--pg41-primary);
}

/* Main content */
.pg41-main {
  margin-top: 70px;
  padding-bottom: 80px;
  min-height: calc(100vh - 70px);
}

/* Container */
.pg41-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pg41-container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Carousel */
.pg41-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 8px 24px var(--pg41-shadow);
}

.pg41-carousel-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.pg41-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.pg41-slide.pg41-active {
  opacity: 1;
}

.pg41-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg41-carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.pg41-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.pg41-dot.pg41-active {
  background: var(--pg41-primary);
  width: 24px;
  border-radius: 5px;
}

/* Section */
.pg41-section {
  margin: 3rem 0;
  padding: 2rem 0;
}

.pg41-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pg41-primary);
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pg41-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pg41-secondary);
  margin-bottom: 1.5rem;
}

/* Game grid */
.pg41-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.pg41-game-card {
  background: rgba(64, 224, 208, 0.05);
  border: 1px solid rgba(64, 224, 208, 0.2);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.pg41-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px var(--pg41-shadow);
  border-color: var(--pg41-primary);
}

.pg41-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.pg41-game-name {
  font-size: 1.2rem;
  color: var(--pg41-text);
  word-break: break-word;
  line-height: 1.3;
}

/* Content box */
.pg41-content-box {
  background: rgba(64, 224, 208, 0.05);
  border: 1px solid rgba(64, 224, 208, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.pg41-text {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--pg41-accent);
  margin-bottom: 1rem;
}

.pg41-highlight {
  color: var(--pg41-primary);
  font-weight: 600;
}

/* Button group */
.pg41-btn-group {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pg41-btn-primary {
  background: linear-gradient(135deg, var(--pg41-primary) 0%, #30D0C0 100%);
  color: var(--pg41-dark);
  padding: 1.2rem 2.4rem;
  border-radius: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
  min-height: 48px;
}

.pg41-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(64, 224, 208, 0.6);
}

/* FAQ accordion */
.pg41-faq-item {
  background: rgba(64, 224, 208, 0.05);
  border: 1px solid rgba(64, 224, 208, 0.2);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.pg41-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--pg41-primary);
}

.pg41-faq-icon {
  font-size: 1.8rem;
  color: var(--pg41-primary);
}

.pg41-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.pg41-faq-open {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* Footer */
.pg41-footer {
  background: linear-gradient(180deg, var(--pg41-dark) 0%, #1A1A1A 100%);
  padding: 3rem 1.5rem 10rem;
  margin-top: 4rem;
}

.pg41-footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.pg41-footer-promo {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(64, 224, 208, 0.05);
  border-radius: 12px;
}

.pg41-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.pg41-footer-link {
  color: var(--pg41-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.pg41-footer-link:hover {
  color: var(--pg41-primary);
}

.pg41-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(64, 224, 208, 0.03);
  border-radius: 12px;
}

.pg41-partner-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
}

.pg41-partner-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

.pg41-copyright {
  text-align: center;
  color: var(--pg41-secondary);
  font-size: 1.4rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(64, 224, 208, 0.2);
}

/* Bottom navigation - mobile only */
.pg41-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1A3A3A 0%, var(--pg41-dark) 100%);
  box-shadow: 0 -4px 12px rgba(64, 224, 208, 0.2);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  border-top: 2px solid rgba(64, 224, 208, 0.3);
}

.pg41-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: var(--pg41-secondary);
  cursor: pointer;
  padding: 0.5rem;
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pg41-bottom-nav-btn:hover,
.pg41-active-nav {
  color: var(--pg41-primary);
  transform: scale(1.05);
}

.pg41-nav-icon {
  font-size: 2.4rem;
}

.pg41-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Notification */
.pg41-notification {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--pg41-primary);
  color: var(--pg41-dark);
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.pg41-notification-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive - Desktop */
@media (min-width: 769px) {
  .pg41-site-name {
    display: block;
  }

  .pg41-header-actions {
    gap: 1.5rem;
  }

  .pg41-btn {
    font-size: 1.5rem;
    padding: 1rem 2rem;
  }

  .pg41-menu-toggle {
    display: none;
  }

  .pg41-bottom-nav {
    display: none;
  }

  .pg41-main {
    padding-bottom: 2rem;
  }

  .pg41-footer {
    padding-bottom: 3rem;
  }

  .pg41-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
  }

  .pg41-container {
    max-width: 1200px;
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .pg41-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 2rem;
  }
}

/* Utilities */
.pg41-text-center {
  text-align: center;
}

.pg41-mt-1 { margin-top: 1rem; }
.pg41-mt-2 { margin-top: 2rem; }
.pg41-mt-3 { margin-top: 3rem; }
.pg41-mb-1 { margin-bottom: 1rem; }
.pg41-mb-2 { margin-bottom: 2rem; }
.pg41-mb-3 { margin-bottom: 3rem; }

.pg41-hidden {
  display: none;
}
