/* style/download.css */

/* Base styles for page-download */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-download__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles --header-offset, so this is just decorative */
  background-color: #0A4B2C; /* Deep Green */
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly dim the image to help text contrast */
}

.page-download__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-download__main-title {
  font-size: clamp(2em, 4.5vw, 3.5em); /* Responsive font size */
  font-weight: 800;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-download__description {
  font-size: 1.2em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  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;
  text-align: center;
}

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

.page-download__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6); /* Glow */
}

.page-download__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-download__btn-secondary:hover {
  background: #57E38D; /* Glow */
  color: #08160F; /* Background */
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6); /* Glow */
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG - Darker background */
}

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

.page-download__feature-card {
  background-color: #08160F; /* Background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__feature-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

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

/* How To Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-download__download-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.page-download__step-block {
  flex: 1 1 calc(50% - 20px);
  min-width: 300px;
  background-color: #11271B; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  color: #F2FFF6; /* Text Main */
}

.page-download__step-title {
  font-size: 1.8em;
  color: #F2C14E; /* Gold */
  margin-bottom: 25px;
  text-align: center;
}

.page-download__step-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-download__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-download__qr-code-wrapper {
  text-align: center;
  margin-top: 30px;
}

.page-download__qr-code {
  width: 250px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border: 5px solid #F2C14E; /* Gold */
  border-radius: 8px;
}

.page-download__btn-download {
  margin-top: 15px;
  min-width: 200px;
}

.page-download__note {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-top: 50px;
  padding: 0 20px;
}

/* App Features Section */
.page-download__app-features-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
}

.page-download__features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-download__feature-item {
  background-color: #08160F; /* Background */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-download__feature-item-title {
  font-size: 1.6em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-download__feature-item-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

.page-download__feature-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid #2E7A4E; /* Border */
}

/* Video Section */
.page-download__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 80px 0; /* Small top padding, body handles header offset */
  background-color: #08160F; /* Background */
}

.page-download__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 2px solid #2E7A4E; /* Border */
  margin-top: 40px;
}

.page-download__video-wrapper .page-download__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Game Showcase Section */
.page-download__game-showcase-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
}

.page-download__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-download__game-card {
  background-color: #08160F; /* Background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__game-title {
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-download__game-title a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-download__game-title a:hover {
  color: #57E38D; /* Glow */
}

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

.page-download__game-showcase-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid #2E7A4E; /* Border */
}

/* Promotions Section */
.page-download__promotions-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-download__promo-list {
  list-style-type: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__promo-list .page-download__list-item {
  background-color: #11271B; /* Card BG */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 5px solid #F2C14E; /* Gold */
  color: #F2FFF6; /* Text Main */
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-download__promo-list .page-download__list-item strong {
  color: #57E38D; /* Glow */
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
}

.page-download__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-download__faq-item {
  background-color: #08160F; /* Background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-download__faq-item details > summary {
  list-style: none;
}

.page-download__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #2E7A4E; /* Divider */
}

.page-download__faq-question:hover {
  background-color: #13994A; /* Slightly lighter green */
}

.page-download__faq-qtext {
  flex-grow: 1;
  color: #F2FFF6;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Gold */
}

.page-download__faq-item[open] .page-download__faq-toggle {
  content: '−';
}

.page-download__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-download__faq-answer p {
  margin: 0;
  color: #A7D9B8;
}

/* Final CTA Section */
.page-download__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-download__description {
    font-size: 1.1em;
  }
  .page-download__hero-image-wrapper {
    max-height: 600px;
  }
}

@media (max-width: 768px) {
  .page-download__container {
    padding: 0 15px;
  }
  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-download__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-download__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-download__description {
    font-size: 1em;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__app-features-section,
  .page-download__video-section,
  .page-download__game-showcase-section,
  .page-download__promotions-section,
  .page-download__faq-section,
  .page-download__final-cta-section {
    padding: 40px 0;
  }
  
  .page-download__hero-image-wrapper {
    max-height: 400px;
    margin-bottom: 30px;
  }

  .page-download__features-grid,
  .page-download__download-steps,
  .page-download__features-list,
  .page-download__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__step-block {
    padding: 30px;
  }

  .page-download__qr-code {
    width: 200px;
  }

  .page-download__feature-image,
  .page-download__game-showcase-image {
    margin-top: 30px;
  }

  /* Mobile image responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__hero-image,
  .page-download__qr-code,
  .page-download__feature-image,
  .page-download__game-showcase-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile video responsiveness */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__video-section,
  .page-download__video-container,
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-download__video-section {
    padding-top: 10px !important; /* body handles --header-offset, keep small */
  }

  /* Ensure all content containers are responsive */
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-image-wrapper,
  .page-download__cta-buttons,
  .page-download__download-steps,
  .page-download__features-grid,
  .page-download__features-list,
  .page-download__game-grid,
  .page-download__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Remove filter from images for color consistency */
  .page-download img {
    filter: none !important;
  }
}

@media (max-width: 480px) {
  .page-download__section-title {
    font-size: 1.5em;
  }
  .page-download__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-download__hero-image-wrapper {
    max-height: 300px;
  }
  .page-download__hero-content {
    padding: 0 10px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    font-size: 0.95em;
    padding: 10px 15px;
  }
  .page-download__step-block {
    padding: 25px;
  }
  .page-download__step-title {
    font-size: 1.5em;
  }
  .page-download__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-download__faq-toggle {
    font-size: 1.2em;
  }
  .page-download__faq-answer {
    padding: 15px;
  }
}