/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Body background from shared.css */
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-index__heading {
  font-size: 36px;
  color: #FFD700; /* Gold for headings */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-index__heading + .page-index__paragraph {
  margin-top: -15px;
}

.page-index__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  color: #f0f0f0;
}

.page-index__link-text {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__link-text:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Buttons */
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-index__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #000080; /* Navy blue text for contrast */
  border: 2px solid #FFD700;
}

.page-index__btn-primary:hover {
  background-color: #e6c200;
  color: #00005a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-index__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-index__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-index__btn-link {
  background-color: #000080; /* Navy blue */
  color: #FFD700; /* Gold text */
  border: 2px solid #000080;
  padding: 10px 20px;
  font-size: 15px;
}

.page-index__btn-link:hover {
  background-color: #00005a;
  border-color: #00005a;
  color: #FFD700;
  transform: translateY(-1px);
}

.page-index__cta-buttons {
  text-align: center;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 90px; /* Adjust for fixed header */
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-index__hero-image {
  width: 100%;
  margin: 0;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Products Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #0a0a0a;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small + 2 large */
  gap: 20px;
}

.page-index__products-grid {
  display: grid;
  gap: 20px;
}

.page-index__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-index__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-index__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  border: 3px solid #FFD700; /* Golden border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3; /* Maintain aspect ratio for desktop */
}

.page-index__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.page-index__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.page-index__product-card-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-index__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #000080; /* Navy blue background */
  color: #ffffff;
}

.page-index__intro-section .page-index__heading {
  color: #FFD700;
}

.page-index__intro-section .page-index__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-index__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-index__link-card {
  background-color: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.page-index__link-card-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__link-card-desc {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-index__disclaimer {
  font-size: 14px;
  color: #888888;
  margin-top: 40px;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #000080; /* Navy blue background */
  color: #ffffff;
}

.page-index__games-section .page-index__heading {
  color: #FFD700;
}

.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__game-category {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.page-index__game-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid #FFD700;
}

.page-index__game-desc {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 25px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__promo-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__promo-title {
  font-size: 20px;
  color: #FFD700;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-index__promo-desc {
  font-size: 15px;
  color: #cccccc;
  margin: 0 15px 20px;
}

.page-index__promo-card .page-index__btn-link {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

.page-index__promo-note {
  font-size: 14px;
  color: #888888;
  margin-top: 40px;
}

/* Safety & Support Section */
.page-index__safety-support-section {
  padding: 80px 0;
  background-color: #000080; /* Navy blue background */
  color: #ffffff;
}

.page-index__safety-support-section .page-index__heading {
  color: #FFD700;
}

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__feature-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #333333;
}

.page-index__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid #FFD700;
  padding: 10px;
}

.page-index__feature-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__feature-desc {
  font-size: 15px;
  color: #cccccc;
}

.page-index__contact-info {
  margin-top: 50px;
  text-align: center;
  font-size: 17px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-index__faq-list {
  margin-top: 40px;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #1a1a1a;
  border-radius: 0 0 5px 5px;
  color: #cccccc;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #2a2a2a;
  border-color: #FFD700;
}

.page-index__faq-question:active {
  background: #3a3a3a;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
  background-color: #000080; /* Navy blue background */
  color: #ffffff;
}

.page-index__blog-section .page-index__heading {
  color: #FFD700;
}

.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__blog-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

.page-index__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.page-index__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__blog-content {
  padding: 20px;
}

.page-index__blog-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.page-index__blog-title a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-index__blog-title a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-index__blog-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-index__blog-date {
  font-size: 13px;
  color: #888888;
}

.page-index__cta-blog {
  text-align: center;
  margin-top: 50px;
}

/* Floating Login Button for Mobile */
.page-index__floating-login-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #FFD700;
  color: #000080;
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
  z-index: 1000;
  animation: pulse 1.5s infinite;
  display: none; /* Hidden by default, shown on mobile */
}

.page-index__floating-login-btn:hover {
  background-color: #e6c200;
  transform: scale(1.05);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids */
  }
  
  .page-index__products-grid--small {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .page-index__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-index__heading {
    font-size: 32px;
  }
  .page-index__paragraph {
    font-size: 16px;
  }
  .page-index__game-title, .page-index__promo-title, .page-index__feature-title, .page-index__blog-title {
    font-size: 20px;
  }
  .page-index__link-card-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    margin-top: 70px; /* Adjust for mobile fixed header */
  }

  .page-index__container {
    padding: 30px 15px;
  }

  .page-index__heading {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-index__paragraph {
    font-size: 15px;
  }

  /* Mobile Product Showcase */
  .page-index__products-section {
    padding: 40px 15px;
  }
  
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids */
    gap: 15px;
  }
  
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 15px;
  }
  
  .page-index__products-grid--small .page-index__product-card {
    aspect-ratio: 1 / 1; /* Square cards */
  }
  
  .page-index__products-grid--small .page-index__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square images */
  }
  
  .page-index__products-grid--large {
    grid-template-columns: 1fr; /* Each large card on its own row */
    gap: 15px;
  }
  
  .page-index__products-grid--large .page-index__product-card {
    aspect-ratio: 1 / 1; /* Square cards */
  }
  
  .page-index__products-grid--large .page-index__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square images */
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__link-card, .page-index__game-category, .page-index__promo-card, .page-index__feature-item, .page-index__blog-card {
    padding: 20px;
  }

  .page-index__game-image, .page-index__promo-image, .page-index__blog-image {
    height: 180px;
  }

  .page-index__game-title, .page-index__promo-title, .page-index__feature-title, .page-index__blog-title {
    font-size: 18px;
  }

  .page-index__link-card-title {
    font-size: 18px;
  }

  .page-index__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-index__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-index__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-index__faq-answer {
    padding: 0 15px;
  }
  
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  /* Show floating login button on mobile */
  .page-index__floating-login-btn {
    display: block;
  }

  /* Ensure all images and containers are responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__products-grid,
  .page-index__link-card,
  .page-index__game-category,
  .page-index__promo-card,
  .page-index__feature-item,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}