/* style/download.css */

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

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

.page-download__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-download__main-title {
  font-size: clamp(32px, 5vw, 60px);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-download__hero-description {
  font-size: 20px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  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, this is decorative */
  overflow: hidden;
  background-color: #08160F;
}

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

.page-download__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 0.7;
}

.page-download__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  text-align: center;
  margin-top: -150px; /* Pull content up over the image, but not *on* it */
}

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

.page-download__cta-buttons--center {
  margin-top: 40px;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  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%);
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
}

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

.page-download__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-download__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Border with transparency */
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-download__btn-text {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-download__btn-text:hover {
  color: #2AD16F;
}

/* Benefit Cards Section */
.page-download__benefits-section {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-download__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__card-title {
  font-size: 24px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-download__card p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}

/* Download Guide Section */
.page-download__download-guide-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-download__platform-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.page-download__guide-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__qr-code-wrapper {
  margin: 20px auto;
  width: 300px;
  height: 300px;
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__qr-code {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.page-download__steps-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 30px;
}

.page-download__steps-list li {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
  font-size: 16px;
  position: relative;
  padding-left: 25px;
}

.page-download__steps-list li::before {
  content: '✔';
  color: #2AD16F;
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

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

.page-download__feature-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-download__feature-title {
  font-size: 22px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: 700;
}

.page-download__feature-item p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}

/* Games Section */
.page-download__games-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-download__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-download__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-download__game-title {
  font-size: 20px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: 700;
}

.page-download__game-card p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 15px;
  flex-grow: 1;
}

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

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

.page-download__security-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__security-item-title {
  font-size: 24px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-download__security-item p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B;
  list-style: none;
}

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

.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2AD16F;
  transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg);
}

.page-download__faq-answer {
  padding: 0 20px 20px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
  line-height: 1.6;
}

/* CTA Bottom Section */
.page-download__cta-bottom-section {
  padding: 80px 0;
  background-color: #08160F;
  text-align: center;
}

/* General Image Styles for Responsiveness */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .page-download__container,
  .page-download__hero-section,
  .page-download__benefits-section,
  .page-download__download-guide-section,
  .page-download__features-section,
  .page-download__games-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-bottom-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-download__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-download__hero-content {
    margin-top: -100px !important;
  }

  .page-download__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-download__hero-description,
  .page-download__section-description,
  .page-download__card p,
  .page-download__steps-list li,
  .page-download__feature-item p,
  .page-download__game-card p,
  .page-download__security-item p,
  .page-download__faq-answer {
    font-size: 15px;
  }

  .page-download__section-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-download__qr-code-wrapper {
    width: 200px;
    height: 200px;
    margin: 15px auto;
  }

  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-download video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
    overflow: hidden !important;
  }

  .page-download__video-section {
    padding-top: 10px !important;
  }

  .page-download__card,
  .page-download__feature-item,
  .page-download__guide-card,
  .page-download__game-card,
  .page-download__security-item,
  .page-download__faq-item {
    padding: 20px !important;
  }

  .page-download__faq-question {
    font-size: 16px !important;
    padding: 15px !important;
  }
}

@media (min-width: 769px) {
  .page-download__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .page-download__hero-content {
    padding: 100px 20px;
    margin-top: 0; /* Reset margin for desktop */
  }
}