/* style/index.css */

/* Base styles for the page-index scope */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is #000 from shared.css */
  padding-top: 0; /* HERO section starts at the top */
}

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

.page-index__heading {
  font-size: 38px;
  font-weight: 700;
  color: #FFD700; /* Gold heading */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-index__text {
  font-size: 18px;
  margin-bottom: 25px;
  text-align: center;
  color: #e0e0e0;
}

.page-index__highlight {
  color: #FFD700;
  font-weight: 700;
}

.page-index__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.page-index__btn--primary {
  background-color: #FFD700;
  color: #000000; /* Dark text on gold button for contrast */
}

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

.page-index__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

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

.page-index__btn--center {
  margin: 30px auto 0 auto;
  display: block;
  max-width: fit-content;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0; /* Ensure it starts at the very top */
}

.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;
}

/* Product Showcase Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Front 4 occupy 4 parts, back 2 occupy 2 parts */
  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: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
  border: 3px solid #FFD700; /* Gold border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__product-card-image {
  width: 100%;
  height: 250px;
  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: #0d0d0d; /* Darker background for this section */
}

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

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

.page-index__link-card {
  display: block;
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white background */
  padding: 30px;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-index__link-card:hover {
  background: rgba(255, 215, 0, 0.2); /* Goldish hover effect */
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.page-index__link-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__link-desc {
  font-size: 16px;
  color: #cccccc;
}

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

.page-index__game-category {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-index__game-category--reverse {
  flex-direction: row-reverse;
}

.page-index__game-content {
  flex: 1;
}

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

.page-index__game-description {
  font-size: 17px;
  color: #e0e0e0;
  margin-bottom: 25px;
}

.page-index__game-image {
  flex: 1;
  min-width: 400px; /* Ensure images are not too small */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-index__promo-description {
  font-size: 16px;
  color: #cccccc;
  padding: 0 20px;
  margin-bottom: 20px;
}

/* Security & Customer Service Section */
.page-index__security-cs-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-index__info-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.page-index__info-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
}

.page-index__info-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__info-description {
  font-size: 16px;
  color: #cccccc;
}

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

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-item.active .page-index__faq-question {
  background-color: rgba(255, 215, 0, 0.1);
  border-bottom-color: transparent;
}

.page-index__faq-question:hover {
  background: rgba(255, 215, 0, 0.05);
}

.page-index__faq-question:active {
  background: rgba(255, 215, 0, 0.08);
}

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

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

.page-index__faq-item.active .page-index__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg); /* Plus sign rotates to form an 'X' or minus */
}

.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 25px;
  opacity: 0;
  color: #cccccc;
  font-size: 17px;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.02); /* Slightly darker for answer content */
  border-radius: 0 0 8px 8px;
}

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

.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: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

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

.page-index__blog-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__blog-title:hover {
  text-decoration: underline;
}

.page-index__blog-excerpt {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__heading {
    font-size: 32px;
  }
  .page-index__text {
    font-size: 17px;
  }
  .page-index__game-category {
    flex-direction: column !important;
    text-align: center;
  }
  .page-index__game-image {
    min-width: unset;
    width: 100%;
  }
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids */
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 0 !important; /* Ensure no extra padding from fixed header, hero handles it */
  }
  .page-index__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-index__btn {
    padding: 12px 25px;
    font-size: 16px;
  }

  /* HERO */
  .page-index__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Products */
  .page-index__products-section {
    padding: 40px 15px;
  }
  .page-index__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-index__products-grid--small .page-index__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-index__products-grid--small .page-index__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-index__products-grid--large {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-index__products-grid--large .page-index__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-index__products-grid--large .page-index__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }

  /* Quick Access */
  .page-index__quick-access-section {
    padding: 40px 0;
  }
  .page-index__links-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-index__link-card {
    padding: 20px;
  }
  .page-index__link-title {
    font-size: 20px;
  }
  .page-index__link-desc {
    font-size: 14px;
  }

  /* Games Section */
  .page-index__games-section {
    padding: 40px 0;
  }
  .page-index__game-category {
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
  }
  .page-index__game-title {
    font-size: 24px;
  }
  .page-index__game-description {
    font-size: 15px;
  }
  .page-index__game-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Promotions */
  .page-index__promotions-section {
    padding: 40px 0;
  }
  .page-index__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__promo-image {
    height: 180px;
  }
  .page-index__promo-title {
    font-size: 20px;
  }
  .page-index__promo-description {
    font-size: 14px;
  }

  /* Security & CS */
  .page-index__security-cs-section {
    padding: 40px 0;
  }
  .page-index__security-cs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__info-icon {
    width: 80px;
    height: 80px;
  }
  .page-index__info-title {
    font-size: 20px;
  }
  .page-index__info-description {
    font-size: 14px;
  }

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

  /* Blog */
  .page-index__blog-section {
    padding: 40px 0;
  }
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__blog-image {
    height: 160px;
  }
  .page-index__blog-content {
    padding: 20px;
  }
  .page-index__blog-title {
    font-size: 18px;
  }
  .page-index__blog-excerpt {
    font-size: 14px;
  }

  /* Universal image/container responsive fix */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__product-card,
  .page-index__link-card,
  .page-index__game-category,
  .page-index__promo-card,
  .page-index__info-card,
  .page-index__faq-item,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove padding for sections that need full bleed on mobile */
  .page-index__hero-section .page-index__hero-container,
  .page-index__products-section .page-index__products-container {
    padding-left: 0;
    padding-right: 0;
  }
}