/* style/index-featured-games.css */

:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #0d0d0d; /* Assuming a dark background from shared.css */
}

.page-index-featured-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for the page, assuming dark body bg */
  background-color: var(--bg-dark); /* Ensure consistency with assumed dark body bg */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on desktop too */
}

.page-index-featured-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-index-featured-games__hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

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

.page-index-featured-games__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index-featured-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-index-featured-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.page-index-featured-games__cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-featured-games__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-index-featured-games__cta-button--secondary:hover {
  background: #7a0000;
}

.page-index-featured-games__cta-button--small {
  padding: 10px 25px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-index-featured-games__cta-button--large {
  padding: 20px 50px;
  font-size: 1.3em;
  border-radius: 10px;
}

.page-index-featured-games__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-index-featured-games__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-index-featured-games__section-description {
  font-size: 1.1em;
  color: #ccc;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-featured-games__overview-section,
.page-index-featured-games__security-section,
.page-index-featured-games__conclusion-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
}

.page-index-featured-games__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  color: #f0f0f0;
}

.page-index-featured-games__content-wrapper p {
  flex: 1;
  min-width: 300px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-index-featured-games__content-wrapper .page-index-featured-games__image {
  flex: 1;
  min-width: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-index-featured-games__content-wrapper .page-index-featured-games__cta-button {
  margin-top: 20px;
}

.page-index-featured-games__games-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-index-featured-games__game-card {
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.page-index-featured-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-index-featured-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--primary-color);
}

.page-index-featured-games__game-title {
  font-size: 1.5em;
  color: var(--primary-color);
  padding: 20px 20px 10px;
  margin: 0;
}

.page-index-featured-games__game-description {
  font-size: 0.95em;
  color: #ccc;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index-featured-games__game-link {
  display: block;
  background: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 0 0 12px 12px;
}

.page-index-featured-games__game-link:hover {
  background: #7a0000;
}

.page-index-featured-games__promotions-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
}

.page-index-featured-games__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-featured-games__promotion-card {
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.page-index-featured-games__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-index-featured-games__promotion-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--primary-color);
}

.page-index-featured-games__promotion-title {
  font-size: 1.6em;
  color: var(--primary-color);
  padding: 20px 20px 10px;
  margin: 0;
}

.page-index-featured-games__promotion-description {
  font-size: 1em;
  color: #ccc;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index-featured-games__promotion-button {
  display: block;
  background: var(--primary-color);
  color: var(--text-dark);
  text-align: center;
  padding: 15px 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 0 0 12px 12px;
}

.page-index-featured-games__promotion-button:hover {
  background: #e6c200;
}

.page-index-featured-games__join-guide-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-index-featured-games__step-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--text-light);
}

.page-index-featured-games__step-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index-featured-games__step-card p {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 25px;
}

.page-index-featured-games__step-link {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-featured-games__step-link:hover {
  background: #7a0000;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-index-featured-games__main-title {
    font-size: 3em;
  }
  .page-index-featured-games__section-title {
    font-size: 2em;
  }
  .page-index-featured-games__content-wrapper .page-index-featured-games__image {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-index-featured-games {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index-featured-games__container {
    padding: 0 15px;
  }
  .page-index-featured-games__hero-section {
    padding: 60px 0;
  }
  .page-index-featured-games__main-title {
    font-size: 2.2em;
  }
  .page-index-featured-games__hero-description {
    font-size: 1em;
  }
  .page-index-featured-games__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index-featured-games__section-title {
    font-size: 1.8em;
    padding-top: 30px;
  }
  .page-index-featured-games__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-index-featured-games__overview-section,
  .page-index-featured-games__security-section,
  .page-index-featured-games__conclusion-section,
  .page-index-featured-games__games-section,
  .page-index-featured-games__promotions-section,
  .page-index-featured-games__join-guide-section {
    padding: 40px 0;
  }
  .page-index-featured-games__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .page-index-featured-games__content-wrapper p {
    min-width: unset;
    width: 100%;
  }
  .page-index-featured-games__content-wrapper .page-index-featured-games__image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .page-index-featured-games__game-grid,
  .page-index-featured-games__promotion-cards,
  .page-index-featured-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-index-featured-games__game-card,
  .page-index-featured-games__promotion-card,
  .page-index-featured-games__step-card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  .page-index-featured-games__game-image,
  .page-index-featured-games__promotion-image {
    height: 180px;
  }
  .page-index-featured-games__game-title,
  .page-index-featured-games__promotion-title {
    font-size: 1.3em;
    padding: 15px 15px 8px;
  }
  .page-index-featured-games__game-description,
  .page-index-featured-games__promotion-description {
    font-size: 0.9em;
    padding: 0 15px 15px;
  }
  .page-index-featured-games__game-link,
  .page-index-featured-games__promotion-button,
  .page-index-featured-games__step-link {
    padding: 10px 15px;
  }
  .page-index-featured-games__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-index-featured-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index-featured-games__section,
  .page-index-featured-games__card,
  .page-index-featured-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Ensure no horizontal scroll for any content */
  .page-index-featured-games > section {
    overflow-x: hidden;
  }
  .page-index-featured-games__content-wrapper > * {
    max-width: 100%;
  }
}

/* Color Contrast Adjustments - Assuming dark background for body */
.page-index-featured-games p, 
.page-index-featured-games li, 
.page-index-featured-games__hero-description, 
.page-index-featured-games__section-description, 
.page-index-featured-games__game-description, 
.page-index-featured-games__promotion-description, 
.page-index-featured-games__step-card p {
  color: #cccccc; /* Lighter text on dark background */
}

.page-index-featured-games__game-card, 
.page-index-featured-games__promotion-card, 
.page-index-featured-games__step-card {
  background: #2a2a2a; /* Slightly lighter dark background for cards */
}

.page-index-featured-games__cta-button {
  background: var(--primary-color);
  color: var(--text-dark); /* Dark text on gold button */
}

.page-index-featured-games__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light); /* Light text on dark red button */
}

.page-index-featured-games__game-link,
.page-index-featured-games__step-link {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-index-featured-games__promotion-button {
  background: var(--primary-color);
  color: var(--text-dark);
}

/* No CSS filters allowed for images */
.page-index-featured-games img {
  filter: none; /* Ensure no filters are applied */
}