/* style/index.css */

/* Base styles for the page content */
.page-index {
  color: #333333; /* Dark text for light body background #f0f2f5 */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Section padding for consistency */
.page-index__section-padding {
  padding: 60px 20px;
}

/* Container for centering content */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Background colors for sections */
.page-index__bg-dark {
  background-color: #1A1A2E;
  color: #f0f2f5;
}

.page-index__bg-primary {
  background-color: #1A1A2E;
}

/* Typography */
.page-index__section-title {
  font-size: 2.8em;
  color: #1A1A2E;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index__section-title--light {
  color: #FFD700;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-index__section-subtitle--light {
  color: #f0f2f5;
}

.page-index h3 {
  font-size: 1.8em;
  color: #1A1A2E;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__bg-dark h3 {
  color: #FFD700;
}

.page-index p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-index__bg-dark p {
  color: #e0e0e0;
}

.page-index ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-index ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Buttons */
.page-index__button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.page-index__button--primary {
  background-color: #FFD700;
  color: #1A1A2E;
  border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-index__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  margin-left: 15px;
}

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #1A1A2E;
}

.page-index__button--tertiary {
  background-color: #1A1A2E;
  color: #FFD700;
  border: 2px solid #1A1A2E;
}

.page-index__button--tertiary:hover {
  background-color: #0d0d1a;
  border-color: #0d0d1a;
}

.page-index__button--outline {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__button--outline:hover {
  background-color: #FFD700;
  color: #1A1A2E;
}

.page-index__button--outline-light {
  background-color: transparent;
  color: #f0f2f5;
  border: 2px solid #f0f2f5;
}

.page-index__button--outline-light:hover {
  background-color: #f0f2f5;
  color: #1A1A2E;
}

.page-index__button--light {
  background-color: #f0f2f5;
  color: #1A1A2E;
  border: 2px solid #f0f2f5;
}

.page-index__button--light:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
}

.page-index__center-button {
  text-align: center;
  margin-top: 40px;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  color: #f0f2f5;
  padding: 0;
}

.page-index__hero-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px; /* Minimum height for desktop */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-index__hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-index__hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 30px;
  background: rgba(26, 26, 46, 0.7); /* Semi-transparent dark background for content */
  border-radius: 12px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
  font-weight: 800;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f2f5;
  line-height: 1.6;
}

.page-index__hero-buttons .page-index__button {
  margin: 0 10px;
}

/* About Section */
.page-index__about-content {
  text-align: center;
}

.page-index__about-content p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__game-card {
  background-color: #2a2a47; /* Darker background for cards in dark section */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 3px solid #FFD700;
  margin-bottom: 20px;
}

.page-index__game-card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__game-card-description {
  color: #e0e0e0;
  padding: 0 20px;
  flex-grow: 1;
}

.page-index__game-card .page-index__button {
  margin-top: 20px;
}

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 3px solid #1A1A2E;
  margin-bottom: 20px;
}

.page-index__promo-card-title {
  font-size: 1.6em;
  color: #1A1A2E;
  margin-bottom: 10px;
}

.page-index__promo-card-description {
  color: #555555;
  padding: 0 20px;
  flex-grow: 1;
}

.page-index__promo-card .page-index__button {
  margin-top: 20px;
}

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

.page-index__feature-item {
  text-align: center;
  padding: 30px;
  background-color: #2a2a47;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-index__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce minimum size for icons */
  min-height: 200px;
}

.page-index__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__feature-description {
  color: #e0e0e0;
}

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

.page-index__testimonial-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-index__testimonial-quote {
  font-style: italic;
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 20px;
}

.page-index__testimonial-author {
  font-weight: 600;
  color: #1A1A2E;
}

/* Call to Action Section */
.page-index__cta-section {
  text-align: center;
}

.page-index__cta-content {
  padding: 60px 20px;
  border-radius: 12px;
}

.page-index__cta-content .page-index__section-title {
  margin-bottom: 15px;
}

.page-index__cta-content .page-index__section-subtitle {
  margin-bottom: 30px;
}

/* Content Area (for deep content) */
.page-index__content-area h2,
.page-index__content-area h3 {
  text-align: left;
}

.page-index__content-area p,
.page-index__content-area ul {
  text-align: left;
}

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

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

@media (max-width: 768px) {
  .page-index__hero-container {
    min-height: 450px;
  }

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

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

  .page-index__hero-description {
    font-size: 1.1em;
  }

  .page-index__hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-index__hero-buttons .page-index__button {
    margin: 10px 0;
    width: 80%;
  }

  .page-index__section-padding {
    padding: 40px 15px;
  }

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

  .page-index__section-subtitle {
    font-size: 1em;
  }

  .page-index h3 {
    font-size: 1.5em;
  }

  /* Mobile image scaling */
  .page-index__hero-image,
  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__feature-icon,
  .page-index__content-area img {
    max-width: 100%;
    height: auto;
  }

  .page-index__feature-icon {
    min-width: 200px;
    min-height: 200px;
  }
}

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

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

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

  .page-index h3 {
    font-size: 1.3em;
  }

  .page-index__hero-buttons .page-index__button {
    width: 90%;
  }
}