/* style/index.css */
.page-index {
  color: #ffffff; /* Text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #000000; /* Main dark background */
}

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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  color: #ffffff;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.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: 200px;
  text-align: center;
  font-size: 1.1em;
}

.page-index__button--primary {
  background-color: #FCBC45; /* Login color for primary action */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #FFFFFF; /* Register color for secondary action */
  border: 2px solid #FFFFFF;
}

.page-index__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-index__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-index__section-intro {
  font-size: 1.2em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  color: #cccccc;
}

.page-index__about-section, .page-index__games-section, .page-index__promo-section, .page-index__app-download-section, .page-index__cta-section {
  padding: 80px 0;
  background-color: #000000;
}

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

.page-index__feature-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-index__feature-icon {
  width: 250px; /* Minimum 200px */
  height: 187px; /* Minimum 200px - Adjusted for 4:3 aspect ratio */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-index__feature-text {
  font-size: 1em;
  color: #cccccc;
}

.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: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
}

.page-index__game-image {
  width: 100%;
  height: 200px; /* Minimum 200px */
  object-fit: cover;
}

.page-index__game-title {
  font-size: 1.4em;
  padding: 15px 20px 5px;
  color: #FCBC45;
}

.page-index__game-description {
  font-size: 0.95em;
  padding: 0 20px 20px;
  color: #cccccc;
  flex-grow: 1;
}

.page-index__view-all-games, .page-index__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

.page-index__promo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-index__promo-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-index__promo-image {
  width: 100%;
  height: 400px; /* Minimum 200px */
  object-fit: cover;
}

.page-index__promo-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-index__promo-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FCBC45;
}

.page-index__promo-description {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #cccccc;
  flex-grow: 1;
}

.page-index__app-download-section {
  background-color: #000000;
  padding: 100px 0;
}

.page-index__app-download-section .page-index__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

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

.page-index__app-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #cccccc;
}

.page-index__app-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__app-image {
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index__cta-section {
  background-color: #1a1a1a;
  text-align: center;
  padding: 100px 0;
}

.page-index__section-title--cta {
  color: #FCBC45;
  margin-bottom: 30px;
}

.page-index__cta-description {
  font-size: 1.4em;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

.page-index__button--large {
  padding: 18px 40px;
  font-size: 1.3em;
  min-width: 250px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__promo-image {
    height: 300px;
  }
  .page-index__app-download-section .page-index__container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-content {
    order: 2;
  }
  .page-index__app-image-wrapper {
    order: 1;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-index__hero-section {
    min-height: 500px;
    padding: 40px 15px;
  }
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-index__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    min-width: unset;
  }
  .page-index__about-section, .page-index__games-section, .page-index__promo-section, .page-index__app-download-section, .page-index__cta-section {
    padding: 50px 0;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-index__features-grid, .page-index__game-categories {
    grid-template-columns: 1fr;
  }
  .page-index__promo-card {
    flex-direction: column;
  }
  .page-index__promo-image {
    height: 250px;
  }
  .page-index__promo-content {
    padding: 20px;
  }
  .page-index__promo-title {
    font-size: 1.5em;
  }
  .page-index__promo-description {
    font-size: 0.95em;
  }
  .page-index__app-image {
    max-width: 300px;
  }
  .page-index__button--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }
  /* Enforce mobile image resizing */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__button--large {
    min-width: unset;
    width: 100%;
  }
  .page-index__app-buttons {
    flex-direction: column;
  }
}