/* style/download.css */

/* Variables from shared.css are assumed to be available */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-bg-card: #11271B;
  --color-bg-main: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

.page-download {
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-download__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--color-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-download__section-description {
  font-size: 18px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--color-glow);
}

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-download__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 10px var(--color-glow);
}

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

.page-download__btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-glow);
}

/* 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 for visual spacing */
  overflow: hidden;
  text-align: center;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-download__hero-title {
  font-size: clamp(36px, 5vw, 60px);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-download__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--color-text-main);
  margin-bottom: 40px;
  max-width: 700px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.page-download__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 500px;
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
}

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

.page-download__feature-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-download__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-download__feature-title {
  font-size: 24px;
  color: var(--color-text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-download__feature-text {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
}

.page-download__download-steps-os {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-download__download-os-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-download__os-title {
  font-size: 28px;
  color: var(--color-text-main);
  margin-bottom: 25px;
  font-weight: bold;
}

.page-download__os-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
  width: 100%;
  max-width: 450px;
}

.page-download__step-item {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-download__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Video Section */
.page-download__video-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
  text-align: center;
}

.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: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  width: 100%; /* Ensure width is set for desktop */
}

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

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

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
}

.page-download__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-download__faq-item {
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 20px;
  font-weight: bold;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: var(--color-bg-card);
  border-bottom: 1px solid var(--color-divider);
  list-style: none; /* For details tag */
}

.page-download__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

.page-download__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-primary);
  margin-left: 15px;
}

.page-download__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--color-text-secondary);
  background-color: #0A1E16; /* Slightly lighter than card bg */
  border-top: 1px solid var(--color-divider);
}

/* Final CTA Section */
.page-download__final-cta-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }
  .page-download__hero-description {
    font-size: clamp(16px, 2vw, 20px);
  }
  .page-download__download-steps-os {
    grid-template-columns: 1fr;
  }
  .page-download__step-list {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-download__hero-content {
    padding: 40px 15px;
  }
  .page-download__hero-image {
    filter: brightness(0.4);
  }
  .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;
    font-size: 16px;
  }
  .page-download__section-title {
    font-size: clamp(24px, 6vw, 36px);
    padding: 0 15px;
  }
  .page-download__section-description {
    font-size: 16px;
    padding: 0 15px;
    margin-bottom: 30px;
  }
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__video-section,
  .page-download__faq-section,
  .page-download__final-cta-section {
    padding: 50px 0;
  }
  .page-download__container {
    padding: 0 15px;
  }
  .page-download__features-grid {
    grid-template-columns: 1fr;
  }
  .page-download__feature-card,
  .page-download__download-os-card {
    padding: 20px;
  }
  .page-download__feature-icon,
  .page-download__os-image {
    max-width: 100%;
  }
  .page-download img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__video-wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto;
    overflow: hidden !important;
  }
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }
  .page-download__faq-question {
    font-size: 18px;
    padding: 15px 20px;
  }
  .page-download__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: clamp(28px, 8vw, 40px);
  }
  .page-download__hero-description {
    font-size: 15px;
  }
  .page-download__faq-question {
    font-size: 16px;
  }
  .page-download__faq-toggle {
    font-size: 20px;
  }
}