/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css might handle body */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* Ensure images within content areas are not too small for mobile */
@media (max-width: 768px) {
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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

.page-index__content-wrapper--reverse {
  display: flex;
  flex-direction: column; /* Default for mobile */
  align-items: center;
  gap: 40px;
}

@media (min-width: 769px) {
  .page-index__content-wrapper--reverse {
    flex-direction: row; /* Desktop layout */
  }
  .page-index__content-wrapper--reverse .page-index__mobile-text {
    flex: 1;
  }
  .page-index__content-wrapper--reverse .page-index__mobile-image {
    flex: 1;
    max-width: 50%; /* Adjust as needed */
  }
}

.page-index__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF; /* Text on hero image should be white */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero */
}

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

.page-index__hero-container {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  max-width: 900px;
  margin: 20px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 150px; /* Ensure buttons are not too small */
  text-align: center;
  font-size: 1.1em;
  border: none; /* Reset default button border */
}

.page-index__button--register {
  background-color: #000000; /* Main color as background */
  color: #FFFFFF; /* Register text color */
}

.page-index__button--register:hover {
  background-color: #333333;
}

.page-index__button--login {
  background-color: #FCBC45; /* Login button background */
  color: #000000; /* Login text color */
}

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

.page-index__button--primary {
  background-color: #000000;
  color: #FFFFFF;
}

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

.page-index__button--secondary {
  background-color: #FFFFFF;
  color: #000000;
  border: 1px solid #000000;
}

.page-index__button--secondary:hover {
  background-color: #f0f0f0;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FCBC45;
  color: #000000;
}

.page-index__button--small:hover {
  background-color: #e0a53b;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-index__sub-title {
  font-size: 1.8em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-index__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-index__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-index__feature-item {
  background-color: #f9f9f9;
  padding: 20px;
  border-left: 5px solid #000000;
  border-radius: 5px;
  font-size: 1.05em;
  color: #333333;
}

.page-index__feature-item strong {
  color: #000000;
}

.page-index__games-section,
.page-index__promo-section,
.page-index__mobile-section,
.page-index__security-section,
.page-index__payment-section,
.page-index__blog-section,
.page-index__cta-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Ensure consistent background for sections */
}

.page-index__games-section {
  background-color: #f0f0f0; /* Slightly different background for visual separation */
}

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

.page-index__game-card,
.page-index__promo-card,
.page-index__blog-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 450px; /* Ensure cards have a minimum height */
}

.page-index__game-card-image,
.page-index__promo-card-image,
.page-index__blog-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent image display in cards */
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-index__game-card-title,
.page-index__promo-card-title,
.page-index__blog-card-title {
  font-size: 1.4em;
  color: #000000;
  margin: 20px 15px 10px;
  flex-grow: 1; /* Allow title to take available space */
}

.page-index__game-card-title a,
.page-index__promo-card-title a,
.page-index__blog-card-title a {
  text-decoration: none;
  color: #000000;
}

.page-index__game-card-title a:hover,
.page-index__promo-card-title a:hover,
.page-index__blog-card-title a:hover {
  color: #FCBC45;
}

.page-index__game-card-description,
.page-index__promo-card-description,
.page-index__blog-card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-index__game-card .page-index__button,
.page-index__promo-card .page-index__button,
.page-index__blog-card .page-index__button {
  margin: 0 15px 20px;
  align-self: center;
  width: calc(100% - 30px);
}

.page-index__mobile-section .page-index__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

@media (min-width: 769px) {
  .page-index__mobile-section .page-index__content-wrapper {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .page-index__mobile-section .page-index__content-wrapper--reverse {
    flex-direction: row-reverse;
  }
}

.page-index__mobile-text {
  flex: 1;
}

.page-index__mobile-image {
  flex: 1;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__cta-section {
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

.page-index__cta-section .page-index__section-title {
  color: #FFFFFF;
}

.page-index__cta-section .page-index__text-content {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__button {
    width: 100%;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__game-categories,
  .page-index__promo-cards,
  .page-index__blog-cards {
    grid-template-columns: 1fr;
  }
  .page-index__mobile-section .page-index__content-wrapper {
    flex-direction: column;
  }
  .page-index__cta-actions {
    flex-direction: column;
  }
}

/* Ensure all images meet minimum size requirements */
.page-index img {
  min-width: 200px;
  min-height: 200px;
  /* Additional styles for responsive behavior will be handled by max-width: 100% and height: auto in media queries */
}

/* Specific overrides for card images to ensure they are not too small if the card itself is small */
.page-index__game-card-image,
.page-index__promo-card-image,
.page-index__blog-card-image {
  min-width: 280px; /* Card min-width is 280px, so image should match */
  min-height: 200px; /* Enforce min height for card images */
  height: 250px; /* Keep fixed height as defined for consistency */
  object-fit: cover;
}

/* No CSS filters for images */
.page-index img {
  filter: none;
}