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

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #0A0A0A; /* Dark Black */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0A0A0A;
  --background-light-card: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.15);
}

.page-index-featured-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-light);
  background-color: var(--background-dark); /* Ensure text is light on dark body */
  line-height: 1.6;
}

/* HERO Section */
.page-index-featured-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, #0A0A0A, #222222);
  overflow: hidden;
}

.page-index-featured-games__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-index-featured-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 900px;
}

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

.page-index-featured-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.page-index-featured-games__hero-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-index-featured-games__hero-description {
  font-size: 1.3em;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-featured-games__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.4em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
  border: none;
}

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

/* General Section Styles */
.page-index-featured-games__section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background-dark);
}

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

.page-index-featured-games__section-title {
  font-size: 2.8em;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.page-index-featured-games__text-block {
  font-size: 1.1em;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
}

.page-index-featured-games__inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index-featured-games__inline-link:hover {
  color: #ffec8b;
  text-decoration: underline;
}

.page-index-featured-games__btn-primary {
  display: inline-block;
  padding: 14px 35px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
}

.page-index-featured-games__btn-primary:hover {
  background: #ffec8b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.page-index-featured-games__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.page-index-featured-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.page-index-featured-games__btn-text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
  transition: color 0.3s ease;
}

.page-index-featured-games__btn-text-link:hover {
  color: #ffec8b;
  text-decoration: underline;
}

/* Quick Access Section */
.page-index-featured-games__quick-access-section {
  background-color: #1a1a1a;
}

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

.page-index-featured-games__quick-link-card {
  background: var(--background-light-card);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index-featured-games__quick-link-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-index-featured-games__quick-link-card h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index-featured-games__quick-link-card p {
  font-size: 0.95em;
  color: #cccccc;
}

/* Games Intro Section */
.page-index-featured-games__games-intro-section {
  background-color: var(--background-dark);
}

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

.page-index-featured-games__game-card {
  background: var(--background-light-card);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-featured-games__game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-index-featured-games__game-card:hover img {
  transform: scale(1.05);
}

.page-index-featured-games__game-card-content {
  padding: 25px;
}

.page-index-featured-games__game-card-content h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index-featured-games__game-card-content p {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-index-featured-games__card-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-featured-games__card-link:hover {
  color: #ffec8b;
  text-decoration: underline;
}

/* Promotions Section */
.page-index-featured-games__promotions-section {
  background-color: #1a1a1a;
}

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

.page-index-featured-games__promo-item {
  background: var(--background-light-card);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index-featured-games__promo-item p {
  font-size: 1em;
  color: #cccccc;
}

/* Security & Customer Service Section */
.page-index-featured-games__security-cs-section {
  background-color: var(--background-dark);
}

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

.page-index-featured-games__feature-card {
  background: var(--background-light-card);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-featured-games__feature-card img {
  width: 150px; /* Larger images, not small icons */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index-featured-games__feature-card h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index-featured-games__feature-card p {
  font-size: 0.95em;
  color: #cccccc;
}

/* FAQ Section */
.page-index-featured-games__faq-section {
  background-color: #1a1a1a;
}

.page-index-featured-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-featured-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--background-light-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-index-featured-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #252525;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.page-index-featured-games__faq-item.active .page-index-featured-games__faq-question {
  background: #333333;
  border-bottom-color: var(--border-color);
}

.page-index-featured-games__faq-question:hover {
  background: #333333;
}

.page-index-featured-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-index-featured-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-index-featured-games__faq-item.active .page-index-featured-games__faq-toggle {
  transform: rotate(45deg);
  color: #ffec8b;
}

.page-index-featured-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc;
  text-align: left;
}

.page-index-featured-games__faq-item.active .page-index-featured-games__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-index-featured-games__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

/* Blog Section */
.page-index-featured-games__blog-section {
  background-color: var(--background-dark);
}

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

.page-index-featured-games__blog-card {
  background: var(--background-light-card);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-featured-games__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-index-featured-games__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index-featured-games__blog-card-content {
  padding: 25px;
}

.page-index-featured-games__blog-card-content h3 {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index-featured-games__blog-card-content p {
  font-size: 0.9em;
  color: #cccccc;
  margin-bottom: 15px;
}

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

@media (max-width: 768px) {
  .page-index-featured-games__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }

  .page-index-featured-games__hero-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }

  .page-index-featured-games__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  .page-index-featured-games__cta-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }

  .page-index-featured-games__section {
    padding: 60px 15px;
  }

  .page-index-featured-games__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-index-featured-games__text-block {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-index-featured-games__link-grid,
  .page-index-featured-games__game-grid,
  .page-index-featured-games__promo-list,
  .page-index-featured-games__feature-grid,
  .page-index-featured-games__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-featured-games__quick-link-card,
  .page-index-featured-games__promo-item,
  .page-index-featured-games__feature-card,
  .page-index-featured-games__blog-card {
    padding: 25px;
  }

  .page-index-featured-games__quick-link-card h3 {
    font-size: 1.3em;
  }

  .page-index-featured-games__game-card img {
    height: 200px;
  }

  .page-index-featured-games__game-card-content h3 {
    font-size: 1.2em;
  }

  .page-index-featured-games__feature-card img {
    width: 120px;
    height: 120px;
  }

  .page-index-featured-games__faq-question {
    padding: 15px 20px;
  }

  .page-index-featured-games__faq-question h3 {
    font-size: 1.1em;
  }

  .page-index-featured-games__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-index-featured-games__faq-item.active .page-index-featured-games__faq-answer {
    padding: 15px 20px !important;
  }

  /* Ensure all images are responsive */
  .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,
  .page-index-featured-games__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-index-featured-games__hero-title {
    font-size: 2em;
  }
  .page-index-featured-games__hero-description {
    font-size: 1em;
  }
  .page-index-featured-games__cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-index-featured-games__section-title {
    font-size: 1.8em;
  }
}