/* style/index.css */
.page-index {
  color: #ffffff; /* Text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-index__section-title {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-index__section-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  min-height: 600px; /* Minimum height for hero section */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Slightly darkens image for text readability */
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.page-index__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-index__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-index__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-index__btn--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index__btn--register:hover {
  background-color: #f0f0f0;
}

.page-index__btn--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__btn--login:hover {
  background-color: #e0a53b;
}

.page-index__btn--primary {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__btn--primary:hover {
  background-color: #e0a53b;
}

.page-index__btn--secondary {
  background-color: transparent;
  border: 2px solid #FCBC45;
  color: #FCBC45;
}

.page-index__btn--secondary:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 1rem;
}

.page-index__btn--large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

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

.page-index__about-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.page-index__about-content .page-index__btn {
  margin-top: 20px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-index__game-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__game-card-title {
  font-size: 1.6rem;
  color: #FCBC45;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index__game-card-title a:hover {
  text-decoration: underline;
}

.page-index__game-card-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__game-card-link {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.page-index__game-card-link:hover {
  background-color: #e0a53b;
}

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

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

.page-index__promo-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__promo-card-title {
  font-size: 1.6rem;
  color: #FCBC45;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-card-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__promo-cta {
  text-align: center;
  margin-top: 50px;
}

/* Features Section */
.page-index__features-section {
  padding: 80px 0;
  background-color: #000000;
}

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

.page-index__feature-item {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__feature-title {
  font-size: 1.7rem;
  color: #FCBC45;
  margin-bottom: 15px;
}

.page-index__feature-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.page-index__feature-item .page-index__btn {
  margin-top: 20px;
}

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

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

.page-index__testimonial-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__testimonial-text {
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-index__testimonial-author {
  font-weight: 600;
  color: #FCBC45;
  font-size: 1rem;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  padding: 80px 0;
  background-color: #000000;
  text-align: center;
}

.page-index__responsible-gaming-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__responsible-gaming-section .page-index__btn {
  margin-top: 20px;
}

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  text-align: center;
}

.page-index__cta-actions {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3rem;
  }

  .page-index__hero-description {
    font-size: 1.2rem;
  }

  .page-index__section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Apply for mobile too if not set globally */
  }

  .page-index__hero-title {
    font-size: 2.5rem;
  }

  .page-index__hero-description {
    font-size: 1rem;
  }

  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__btn--large {
    width: 100%;
    max-width: 300px;
  }

  .page-index__section-title {
    font-size: 1.8rem;
  }

  .page-index__section-description {
    font-size: 0.95rem;
  }

  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__features-grid,
  .page-index__testimonials-grid {
    grid-template-columns: 1fr;
  }

  .page-index__game-card-image,
  .page-index__promo-card-image {
    height: 200px;
  }
  
  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  
  .page-index {
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2rem;
  }

  .page-index__hero-description {
    font-size: 0.9rem;
  }

  .page-index__section-title {
    font-size: 1.6rem;
  }

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

  .page-index__btn--large {
    padding: 15px 30px;
  }

  .page-index__hero-section,
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promo-section,
  .page-index__features-section,
  .page-index__testimonials-section,
  .page-index__responsible-gaming-section,
  .page-index__cta-section {
    padding: 60px 0;
  }
}