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

/* Custom Colors */
:root {
  --page-primary-color: #11A84E;
  --page-secondary-color: #22C768;
  --page-card-bg: #11271B;
  --page-background: #08160F;
  --page-text-main: #F2FFF6;
  --page-text-secondary: #A7D9B8;
  --page-border-color: #2E7A4E;
  --page-glow-color: #57E38D;
  --page-gold-color: #F2C14E;
  --page-divider-color: #1E3A2A;
  --page-deep-green-color: #0A4B2C;
  --page-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

.page-index-game-features__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--page-deep-green-color);
  overflow: hidden;
}

.page-index-game-features__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-bottom: 30px;
}

.page-index-game-features__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-index-game-features__hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-index-game-features__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  font-weight: 700;
  color: var(--page-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-index-game-features__description {
  font-size: 1.1em;
  color: var(--page-text-secondary);
  margin-bottom: 30px;
}

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

.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: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to screen width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-index-game-features__btn-primary {
  background: var(--page-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index-game-features__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-index-game-features__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index-game-features__section {
  padding: 80px 0;
  background-color: var(--page-background);
}

.page-index-game-features__dark-section {
  background-color: var(--page-background);
  color: var(--page-text-main);
}

.page-index-game-features__light-bg {
  background-color: #ffffff;
  color: #333333; /* Deep dark text for light background */
}

.page-index-game-features__light-bg .page-index-game-features__section-title,
.page-index-game-features__light-bg .page-index-game-features__card-title {
  color: #000000; /* Ensure title contrast on light background */
}

.page-index-game-features__light-bg .page-index-game-features__text-block,
.page-index-game-features__light-bg .page-index-game-features__card-text {
  color: #333333; /* Ensure text contrast on light background */
}

.page-index-game-features__light-bg .page-index-game-features__btn-secondary {
  color: var(--page-primary-color);
  border-color: var(--page-primary-color);
}

.page-index-game-features__light-bg .page-index-game-features__btn-secondary:hover {
  background: var(--page-primary-color);
  color: #ffffff;
}

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

.page-index-game-features__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: var(--page-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-index-game-features__text-block {
  font-size: 1.05em;
  color: var(--page-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

.page-index-game-features__feature-card,
.page-index-game-features__guide-card {
  background-color: var(--page-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index-game-features__card-image {
  width: 100%;
  max-width: 400px; /* Recommended size for card images */
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-index-game-features__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--page-text-main);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index-game-features__card-text {
  font-size: 0.95em;
  color: var(--page-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index-game-features__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  width: 100%;
}

.page-index-game-features__list li {
  color: var(--page-text-secondary);
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
  font-size: 0.95em;
}

.page-index-game-features__list li::before {
  content: '✓';
  color: var(--page-gold-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-index-game-features__list li a {
  color: var(--page-gold-color);
  text-decoration: none;
}

.page-index-game-features__list li a:hover {
  text-decoration: underline;
}

.page-index-game-features__cta-buttons-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: auto; /* Push to bottom of card */
}

.page-index-game-features__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  width: 100%; /* Ensure width is 100% for desktop */
  max-width: 1000px; /* Max width for the video player */
  margin: 0 auto 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index-game-features__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index-game-features__video-cta {
  text-align: center;
  margin-top: 20px;
}

.page-index-game-features__guide-steps .page-index-game-features__card {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  border: 1px solid #e0e0e0;
}

.page-index-game-features__guide-steps .page-index-game-features__card-title {
  color: #000000;
}

.page-index-game-features__guide-steps .page-index-game-features__card-text {
  color: #555555;
}

.page-index-game-features__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-index-game-features__faq-item {
  background-color: var(--page-card-bg);
  border: 1px solid var(--page-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-text-main);
}

.page-index-game-features__faq-item summary {
  list-style: none;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--page-text-main);
  background-color: var(--page-deep-green-color);
  border-radius: 8px;
}

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

.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-gold-color);
}

.page-index-game-features__faq-answer {
  padding: 20px 25px;
  border-top: 1px solid var(--page-border-color);
  font-size: 1em;
  color: var(--page-text-secondary);
}

.page-index-game-features__faq-answer p {
  margin-bottom: 0;
  text-align: left;
}

.page-index-game-features__faq-answer a {
  color: var(--page-gold-color);
  text-decoration: none;
}

.page-index-game-features__faq-answer a:hover {
  text-decoration: underline;
}

.page-index-game-features__final-cta {
  padding-bottom: 80px;
}

.page-index-game-features__text-center {
  text-align: center;
}

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

  .page-index-game-features__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-index-game-features__main-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
    margin-bottom: 10px;
  }

  .page-index-game-features__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-index-game-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-game-features__btn-primary,
  .page-index-game-features__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-index-game-features__section {
    padding: 50px 0;
  }

  .page-index-game-features__content-area {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index-game-features__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }

  .page-index-game-features__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-index-game-features__feature-grid,
  .page-index-game-features__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-game-features__feature-card,
  .page-index-game-features__guide-card,
  .page-index-game-features__faq-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index-game-features__card-image {
    height: 250px;
    max-width: 100% !important;
    width: 100% !important;
  }

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

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

  .page-index-game-features__video-wrapper {
    padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index-game-features__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-index-game-features__faq-answer {
    padding: 15px 20px;
  }

  .page-index-game-features__faq-answer p {
    font-size: 0.95em;
  }

  .page-index-game-features__cta-buttons-inline {
    flex-direction: column;
    gap: 10px;
  }
}