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

:root {
  --page-primary-color: #1A237E;
  --page-secondary-color: #FFC107;
  --page-text-color: #333;
  --page-light-text-color: #f8f8f8;
  --page-background-light: #f4f7f6;
  --page-background-dark: #2c3e50;
  --page-accent-color-dark: #b38705;
  --page-accent-color-light: #5f65a5;
}

.page-index-featured-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-text-color);
  background-color: var(--page-background-light);
}

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

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

.page-index-featured-games__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:xocdia88,hero_pattern,abstract_gaming]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-index-featured-games__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--page-secondary-color);
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-index-featured-games__hero-subtitle {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.page-index-featured-games__hero-btn {
  display: inline-block;
  background-color: var(--page-secondary-color);
  color: var(--page-primary-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.page-index-featured-games__hero-btn:hover {
  background-color: #e5ac00; /* Darker shade of secondary */
  transform: translateY(-3px);
}

.page-index-featured-games__section-title {
  font-size: 2.5em;
  color: var(--page-primary-color);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.page-index-featured-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--page-secondary-color);
  border-radius: 2px;
}

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

.page-index-featured-games__intro,
.page-index-featured-games__game-versions,
.page-index-featured-games__tips,
.page-index-featured-games__why-choose,
.page-index-featured-games__guide,
.page-index-featured-games__promotions,
.page-index-featured-games__faq,
.page-index-featured-games__conclusion {
  padding: 80px 0;
}

.page-index-featured-games__intro {
  background-color: #fff;
}

.page-index-featured-games__intro-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index-featured-games__intro-text {
  flex: 2;
}

.page-index-featured-games__intro-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-index-featured-games__intro-image {
  flex: 1;
  min-width: 300px;
}

.page-index-featured-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.page-index-featured-games__btn {
  display: inline-block;
  background-color: var(--page-primary-color);
  color: var(--page-light-text-color);
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.page-index-featured-games__btn:hover {
  background-color: var(--page-accent-color-light);
}

.page-index-featured-games__btn--primary {
  background-color: var(--page-secondary-color);
  color: var(--page-primary-color);
}

.page-index-featured-games__btn--primary:hover {
  background-color: var(--page-accent-color-dark);
  color: #fff;
}

.page-index-featured-games__btn--large {
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
}

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

.page-index-featured-games__game-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-featured-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

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

.page-index-featured-games__card-text {
  font-size: 1em;
  color: #666;
  margin-bottom: 25px;
  padding: 0 20px;
}

.page-index-featured-games__game-card .page-index-featured-games__btn {
  margin-top: 0;
}

.page-index-featured-games__tips {
  background-color: #f0f4f7;
}

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

.page-index-featured-games__tip-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index-featured-games__tip-item:hover {
  transform: translateY(-5px);
}

.page-index-featured-games__tip-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-index-featured-games__tip-text {
  font-size: 1em;
  color: #666;
}

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

.page-index-featured-games__cta-bottom p {
  font-size: 1.3em;
  margin-bottom: 25px;
  color: var(--page-primary-color);
  font-weight: bold;
}

.page-index-featured-games__why-choose {
  background-color: var(--page-primary-color);
  color: var(--page-light-text-color);
}

.page-index-featured-games__why-choose .page-index-featured-games__section-title,
.page-index-featured-games__why-choose .page-index-featured-games__section-description {
  color: var(--page-light-text-color);
}

.page-index-featured-games__why-choose .page-index-featured-games__section-title::after {
  background-color: var(--page-secondary-color);
}

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

.page-index-featured-games__benefits-list li {
  background-color: rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.page-index-featured-games__benefits-list li:hover {
  background-color: rgba(255,255,255,0.15);
}

.page-index-featured-games__benefit-title {
  font-size: 1.7em;
  color: var(--page-secondary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-index-featured-games__benefit-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255,193,7,0.5));
}

.page-index-featured-games__benefits-list p {
  font-size: 1em;
  color: var(--page-light-text-color);
  opacity: 0.9;
}

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

.page-index-featured-games__step-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-featured-games__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.page-index-featured-games__step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

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

.page-index-featured-games__step-text {
  font-size: 1em;
  color: #666;
  margin-bottom: 25px;
  padding: 0 20px;
}

.page-index-featured-games__promotions {
  background-color: #f0f4f7;
}

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

.page-index-featured-games__promo-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-featured-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.page-index-featured-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

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

.page-index-featured-games__promo-text {
  font-size: 1em;
  color: #666;
  margin-bottom: 25px;
  padding: 0 20px;
}

.page-index-featured-games__faq-items {
  display: grid;
  gap: 20px;
}

.page-index-featured-games__faq-item {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  border-left: 5px solid var(--page-secondary-color);
}

.page-index-featured-games__faq-question {
  font-size: 1.5em;
  color: var(--page-primary-color);
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-index-featured-games__faq-question::after {
  content: '+';
  font-size: 1.2em;
  color: var(--page-secondary-color);
  transition: transform 0.3s ease;
}

.page-index-featured-games__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-index-featured-games__faq-answer {
  font-size: 1em;
  color: #555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding: 0 10px;
}

.page-index-featured-games__faq-answer.active {
  max-height: 200px; /* Adjust based on expected content length */
  padding: 10px;
}

.page-index-featured-games__conclusion {
  background: linear-gradient(45deg, var(--page-secondary-color) 0%, #ffeb3b 100%);
  color: var(--page-primary-color);
  text-align: center;
  padding: 100px 0;
}

.page-index-featured-games__conclusion .page-index-featured-games__section-title {
  color: var(--page-primary-color);
}

.page-index-featured-games__conclusion .page-index-featured-games__section-title::after {
  background-color: var(--page-primary-color);
}

.page-index-featured-games__conclusion .page-index-featured-games__section-description {
  color: var(--page-primary-color);
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index-featured-games__hero-title {
    font-size: 2.5em;
  }
  .page-index-featured-games__hero-subtitle {
    font-size: 1.2em;
  }
  .page-index-featured-games__section-title {
    font-size: 2em;
  }
  .page-index-featured-games__intro-content {
    flex-direction: column;
  }
  .page-index-featured-games__intro-image {
    min-width: unset;
    width: 100%;
  }
  .page-index-featured-games__benefits-list,
  .page-index-featured-games__grid,
  .page-index-featured-games__tips-grid,
  .page-index-featured-games__guide-steps,
  .page-index-featured-games__promo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-index-featured-games__hero {
    padding: 80px 0;
  }
  .page-index-featured-games__hero-title {
    font-size: 2em;
  }
  .page-index-featured-games__hero-subtitle {
    font-size: 1em;
  }
  .page-index-featured-games__hero-btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index-featured-games__section-title {
    font-size: 1.8em;
  }
  .page-index-featured-games__intro,
  .page-index-featured-games__game-versions,
  .page-index-featured-games__tips,
  .page-index-featured-games__why-choose,
  .page-index-featured-games__guide,
  .page-index-featured-games__promotions,
  .page-index-featured-games__faq,
  .page-index-featured-games__conclusion {
    padding: 50px 0;
  }
  .page-index-featured-games__section-description {
    margin-bottom: 30px;
  }
  .page-index-featured-games__card-title,
  .page-index-featured-games__tip-title,
  .page-index-featured-games__benefit-title,
  .page-index-featured-games__step-title,
  .page-index-featured-games__promo-title,
  .page-index-featured-games__faq-question {
    font-size: 1.4em;
  }
}

@media (max-width: 480px) {
  .page-index-featured-games__hero-title {
    font-size: 1.8em;
  }
  .page-index-featured-games__hero-subtitle {
    font-size: 0.9em;
  }
  .page-index-featured-games__hero-btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-index-featured-games__section-title {
    font-size: 1.5em;
  }
  .page-index-featured-games__cta-bottom p {
    font-size: 1.1em;
  }
  .page-index-featured-games__btn--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}