/* style/index-platform-features.css */
/* Body background color is var(--bg-color) from shared.css, which is #08160F (dark) */
.page-index-platform-features {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index-platform-features__section {
  padding: 60px 0;
  text-align: center;
}

.page-index-platform-features__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-index-platform-features__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-index-platform-features__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #08160F; /* Background */
}

.page-index-platform-features__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-index-platform-features__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index-platform-features__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  text-align: center;
}

.page-index-platform-features__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-index-platform-features__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  line-height: 1.7;
}

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

.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-platform-features__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
}

.page-index-platform-features__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-index-platform-features__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* A lighter shade of primary for contrast */
  border: 2px solid #2E7A4E; /* Border */
}

.page-index-platform-features__btn-secondary:hover {
  background: #2E7A4E; /* Border */
  color: #F2FFF6; /* Text Main */
  transform: translateY(-2px);
}

/* Why Choose Section */
.page-index-platform-features__why-choose {
  background-color: #08160F; /* Background */
  padding-bottom: 80px;
}

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

.page-index-platform-features__feature-card {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-platform-features__card-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-index-platform-features__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-index-platform-features__card-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 15px;
  display: block;
}

/* Game Diversity Section */
.page-index-platform-features__game-diversity {
  background-color: #0A4B2C; /* Deep Green */
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index-platform-features__game-item {
  background: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid #1E3A2A; /* Divider */
}

.page-index-platform-features__game-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-index-platform-features__game-text {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-index-platform-features__text-link {
  color: #2AD16F; /* A lighter shade of primary for contrast */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index-platform-features__text-link:hover {
  color: #F2C14E; /* Gold */
  text-decoration: underline;
}

/* Technology Section */
.page-index-platform-features__technology {
  background-color: #08160F; /* Background */
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index-platform-features__tech-item {
  background: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid #2E7A4E; /* Border */
}

.page-index-platform-features__tech-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-index-platform-features__tech-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-index-platform-features__cta-bottom {
  margin-top: 60px;
}

/* FAQ Section */
.page-index-platform-features__faq-section {
  background-color: #0A4B2C; /* Deep Green */
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index-platform-features__faq-item {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-index-platform-features__faq-question::-webkit-details-marker {
  display: none;
}

.page-index-platform-features__faq-question:hover {
  background-color: #1e3a2a; /* Slightly darker for hover */
}

.page-index-platform-features__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F;
}

.page-index-platform-features__faq-item[open] .page-index-platform-features__faq-toggle {
  content: '−';
}

.page-index-platform-features__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

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

  .page-index-platform-features__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

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

  .page-index-platform-features__section {
    padding: 40px 0;
  }

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

  .page-index-platform-features__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index-platform-features__hero-section {
    padding-bottom: 40px;
  }

  .page-index-platform-features__hero-content {
    margin-top: 20px;
  }

  .page-index-platform-features__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-index-platform-features__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index-platform-features__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-platform-features__btn-primary,
  .page-index-platform-features__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index-platform-features__features-grid,
  .page-index-platform-features__game-list,
  .page-index-platform-features__tech-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-index-platform-features__feature-card,
  .page-index-platform-features__game-item,
  .page-index-platform-features__tech-item {
    padding: 20px;
  }

  .page-index-platform-features__card-title,
  .page-index-platform-features__game-title,
  .page-index-platform-features__tech-title {
    font-size: 1.4em;
  }

  .page-index-platform-features__card-image {
    max-height: 150px;
  }

  .page-index-platform-features__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  /* Mobile image responsiveness */
  .page-index-platform-features img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-platform-features__section,
  .page-index-platform-features__card,
  .page-index-platform-features__container,
  .page-index-platform-features__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by container for content, sections for full width */
    /* padding-right: 15px; */
  }

  .page-index-platform-features__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Buttons in mobile */
  .page-index-platform-features__cta-bottom {
    padding: 0 15px;
  }

  .page-index-platform-features__cta-bottom .page-index-platform-features__btn-primary {
    width: 100%;
  }
}