/* style/index-game-features.css */

:root {
  --page-index-game-features-primary-color: #26A9E0;
  --page-index-game-features-secondary-color: #FFFFFF;
  --page-index-game-features-dark-text: #333333;
  --page-index-game-features-light-text: #FFFFFF;
  --page-index-game-features-bg-dark: #0a0a0a; /* From shared.css body background */
  --page-index-game-features-bg-light: #FFFFFF;
  --page-index-game-features-login-color: #EA7C07;
}

.page-index-game-features {
  color: var(--page-index-game-features-light-text); /* Default text color for dark body background */
  background-color: var(--page-index-game-features-bg-dark);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index-game-features__section {
  padding: 60px 20px;
  text-align: center;
  color: var(--page-index-game-features-light-text);
}

.page-index-game-features__dark-bg {
  background-color: var(--page-index-game-features-bg-dark);
  color: var(--page-index-game-features-light-text);
}

.page-index-game-features__light-bg {
  background-color: var(--page-index-game-features-bg-light);
  color: var(--page-index-game-features-dark-text);
}

.page-index-game-features__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index-game-features__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background: linear-gradient(135deg, var(--page-index-game-features-primary-color) 0%, #007bff 100%);
  color: var(--page-index-game-features-light-text);
  overflow: hidden;
}

.page-index-game-features__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin-right: 40px;
}

.page-index-game-features__hero-image-wrapper {
  position: relative;
  z-index: 1;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-game-features__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index-game-features__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-index-game-features__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-index-game-features__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-index-game-features__btn-primary,
.page-index-game-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index-game-features__btn-primary {
  background-color: var(--page-index-game-features-login-color); /* Login color */
  color: var(--page-index-game-features-light-text);
  border: 2px solid var(--page-index-game-features-login-color);
}

.page-index-game-features__btn-primary:hover {
  background-color: #d16b00;
  transform: translateY(-2px);
}

.page-index-game-features__btn-secondary {
  background-color: transparent;
  color: var(--page-index-game-features-light-text);
  border: 2px solid var(--page-index-game-features-light-text);
}

.page-index-game-features__btn-secondary:hover {
  background-color: var(--page-index-game-features-light-text);
  color: var(--page-index-game-features-primary-color);
  transform: translateY(-2px);
}

.page-index-game-features__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--page-index-game-features-primary-color);
  font-weight: bold;
}

.page-index-game-features__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
  color: var(--page-index-game-features-light-text);
}

.page-index-game-features__overview-section {
  background-color: var(--page-index-game-features-bg-dark);
  color: var(--page-index-game-features-light-text);
}

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

.page-index-game-features__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--page-index-game-features-light-text);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index-game-features__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index-game-features__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index-game-features__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-index-game-features-primary-color);
}

.page-index-game-features__card-title a {
  color: var(--page-index-game-features-primary-color);
  text-decoration: none;
}

.page-index-game-features__card-title a:hover {
  text-decoration: underline;
}

.page-index-game-features__card-text {
  font-size: 1em;
  line-height: 1.7;
  opacity: 0.8;
}

.page-index-game-features__game-library-section {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
}

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

.page-index-game-features__game-card {
  background-color: rgba(38, 169, 224, 0.1); /* Primary color with transparency */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  color: var(--page-index-game-features-light-text);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index-game-features__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index-game-features__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-game-features__promotions-section {
  background-color: var(--page-index-game-features-bg-dark);
  color: var(--page-index-game-features-light-text);
}

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

.page-index-game-features__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--page-index-game-features-light-text);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index-game-features__promo-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index-game-features__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-game-features__promo-card .page-index-game-features__btn-primary,
.page-index-game-features__promo-card .page-index-game-features__btn-secondary {
  margin-top: auto; /* Push buttons to bottom */
}

.page-index-game-features__security-section {
  background-color: #1a1a1a;
  color: var(--page-index-game-features-light-text);
}

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

.page-index-game-features__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--page-index-game-features-light-text);
  transition: transform 0.3s ease;
  height: 100%;
}

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

.page-index-game-features__support-section {
  background-color: var(--page-index-game-features-bg-dark);
  color: var(--page-index-game-features-light-text);
}

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

.page-index-game-features__support-item {
  background-color: rgba(38, 169, 224, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--page-index-game-features-light-text);
  transition: transform 0.3s ease;
  height: 100%;
}

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

.page-index-game-features__support-item a {
  color: var(--page-index-game-features-primary-color);
  text-decoration: underline;
}

.page-index-game-features__faq-section {
  background-color: #1a1a1a;
  color: var(--page-index-game-features-light-text);
}

.page-index-game-features__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-index-game-features__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-index-game-features__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-index-game-features-primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-index-game-features__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-index-game-features__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-index-game-features__faq-qtext {
  flex-grow: 1;
}

.page-index-game-features__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-index-game-features-light-text);
}

.page-index-game-features__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--page-index-game-features-light-text);
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.03);
}

.page-index-game-features__faq-answer p {
  margin-bottom: 10px;
}

.page-index-game-features__faq-answer a {
  color: var(--page-index-game-features-primary-color);
  text-decoration: underline;
}

.page-index-game-features__cta-section {
  background-color: var(--page-index-game-features-primary-color);
  color: var(--page-index-game-features-light-text);
  padding: 80px 20px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index-game-features__hero-section {
    flex-direction: column;
    padding: 40px 20px;
    padding-top: var(--header-offset, 120px);
  }

  .page-index-game-features__hero-content {
    margin-right: 0;
    margin-bottom: 40px;
    max-width: 100%;
  }

  .page-index-game-features__hero-image-wrapper {
    width: 80%;
  }

  .page-index-game-features__hero-title {
    font-size: 2.5em;
  }

  .page-index-game-features__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-index-game-features {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index-game-features__hero-section {
    padding: 30px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }

  .page-index-game-features__hero-title {
    font-size: 2em;
  }

  .page-index-game-features__hero-description {
    font-size: 1em;
  }

  .page-index-game-features__hero-cta-buttons,
  .page-index-game-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-index-game-features__btn-primary,
  .page-index-game-features__btn-secondary,
  .page-index-game-features a[class*="button"],
  .page-index-game-features a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-game-features__section {
    padding: 40px 15px;
  }

  .page-index-game-features__section-title {
    font-size: 1.8em;
  }

  .page-index-game-features__section-description {
    font-size: 0.95em;
  }

  .page-index-game-features__feature-grid,
  .page-index-game-features__game-category-grid,
  .page-index-game-features__promo-grid,
  .page-index-game-features__security-grid,
  .page-index-game-features__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-game-features__feature-card,
  .page-index-game-features__game-card,
  .page-index-game-features__promo-card,
  .page-index-game-features__security-item,
  .page-index-game-features__support-item {
    padding: 20px;
  }

  .page-index-game-features__card-title {
    font-size: 1.3em;
  }

  .page-index-game-features__card-text {
    font-size: 0.9em;
  }

  /* Image and video specific responsive rules */
  .page-index-game-features img,
  .page-index-game-features video,
  .page-index-game-features__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-game-features__section,
  .page-index-game-features__card,
  .page-index-game-features__container,
  .page-index-game-features__video-section,
  .page-index-game-features__video-container,
  .page-index-game-features__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-game-features__faq-list {
    padding: 0 15px;
  }

  .page-index-game-features__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-index-game-features__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-index-game-features__hero-title {
    font-size: 1.8em;
  }

  .page-index-game-features__section-title {
    font-size: 1.6em;
  }

  .page-index-game-features__hero-cta-buttons,
  .page-index-game-features__cta-buttons {
    flex-direction: column;
  }
}