/* style/index-featured-games.css */
.page-index-featured-games {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-index-featured-games__hero-section {
  background-color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-index-featured-games__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-index-featured-games__hero-title {
  font-size: 3.2em;
  color: #000000; /* Primary color for title */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index-featured-games__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

.page-index-featured-games__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-featured-games__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 180px;
  text-align: center;
}

.page-index-featured-games__button--register {
  background-color: #000000; /* Primary color for register button */
  color: #FFFFFF; /* White text for register button */
  border: 2px solid #000000;
}

.page-index-featured-games__button--register:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-index-featured-games__button--play {
  background-color: #FCBC45; /* Login color for play button */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index-featured-games__button--play:hover {
  background-color: #e0a030;
  border-color: #e0a030;
}

.page-index-featured-games__hero-image {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
}

.page-index-featured-games__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-index-featured-games__section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.page-index-featured-games__section:nth-of-type(even) {
  background-color: #FFFFFF;
}

.page-index-featured-games__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-featured-games__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-index-featured-games__section-description {
  font-size: 1.1em;
  color: #666666;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-index-featured-games__game-card,
.page-index-featured-games__why-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-featured-games__game-card:hover,
.page-index-featured-games__why-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index-featured-games__game-card img,
.page-index-featured-games__why-item img {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  min-height: 200px; /* Minimum height for content images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-featured-games__why-item img {
  max-width: 200px; /* Smaller max-width for why section icons, but still >= 200px */
  min-height: 200px; /* Enforce min height for why section icons */
}

.page-index-featured-games__game-card-title,
.page-index-featured-games__why-item-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-featured-games__game-card-description,
.page-index-featured-games__why-item-description {
  font-size: 1em;
  color: #777777;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index-featured-games__button--play-card,
.page-index-featured-games__button--join,
.page-index-featured-games__button--download {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index-featured-games__button--play-card:hover,
.page-index-featured-games__button--join:hover,
.page-index-featured-games__button--download:hover {
  background-color: #e0a030;
  border-color: #e0a030;
}

.page-index-featured-games__section--cta {
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF; /* White text for CTA section */
  padding: 80px 20px;
}

.page-index-featured-games__cta-content .page-index-featured-games__section-title {
  color: #FFFFFF;
}

.page-index-featured-games__cta-content .page-index-featured-games__section-description {
  color: #f0f0f0;
}

.page-index-featured-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-index-featured-games__button--join {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-index-featured-games__button--join:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-index-featured-games__button--download {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-index-featured-games__button--download:hover {
  background-color: #e0a030;
  border-color: #e0a030;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-featured-games__hero-title {
    font-size: 2.8em;
  }
  .page-index-featured-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index-featured-games__hero-title {
    font-size: 2.2em;
  }
  .page-index-featured-games__hero-description {
    font-size: 1em;
  }
  .page-index-featured-games__button {
    width: 100%;
    max-width: 250px;
  }
  .page-index-featured-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-featured-games__section-title {
    font-size: 1.8em;
  }
  .page-index-featured-games__section-description {
    font-size: 0.95em;
  }
  .page-index-featured-games__game-grid,
  .page-index-featured-games__why-grid {
    grid-template-columns: 1fr;
  }
  .page-index-featured-games__game-card img,
  .page-index-featured-games__why-item img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not smaller than 200px on mobile */
    min-height: 200px;
  }
  .page-index-featured-games__hero-section,
  .page-index-featured-games__section {
    padding: 40px 15px;
  }
  /* Ensure no horizontal scroll on mobile */
  .page-index-featured-games {
    overflow-x: hidden;
  }
  .page-index-featured-games__hero-container,
  .page-index-featured-games__container {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .page-index-featured-games__hero-title {
    font-size: 1.8em;
  }
  .page-index-featured-games__section-title {
    font-size: 1.5em;
  }
  .page-index-featured-games__button {
    padding: 12px 25px;
    font-size: 1em;
  }
}