/* style/download.css */

/* --- Base Styles --- */
.page-download {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main */
  background: #0A0A0A; /* Background */
  line-height: 1.6;
}

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

.page-download__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-download__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFD86A 0%, #DDA11D 100%);
  border-radius: 2px;
}

/* --- Hero Section --- */
.page-download__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 50px;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the background image for text readability */
}

.page-download__hero-content {
  position: relative; /* Ensure content is above the image (conceptually) */
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual flow, but text is below image in DOM */
  background: rgba(17, 17, 17, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-download__main-title {
  font-size: 48px;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255,211,107,0.5);
}

.page-download__description {
  font-size: 18px;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
}

.page-download__download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.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;
  min-width: 200px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button */
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(255,216,106,0.4);
}

.page-download__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,216,106,0.6);
}

.page-download__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow */
  border: 2px solid #FFD36B; /* Glow */
  box-shadow: 0 4px 15px rgba(255,211,107,0.2);
}

.page-download__btn-secondary:hover {
  transform: translateY(-3px);
  background: #FFD36B; /* Glow */
  color: #111111; /* Card BG */
  box-shadow: 0 6px 20px rgba(255,211,107,0.4);
}

/* --- Features Section --- */
.page-download__features-section {
  padding: 60px 0;
  background: #0A0A0A; /* Background */
}

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

.page-download__feature-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.page-download__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255,211,107,0.5));
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-download__card-title {
  font-size: 24px;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-download__card-text {
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
}

/* --- Guide Section --- */
.page-download__guide-section {
  padding: 60px 0;
  background: #0A0A0A; /* Background */
}

.page-download__guide-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-download__guide-steps {
  flex: 2;
}

.page-download__guide-subtitle {
  font-size: 28px;
  color: #F2C14E; /* Main color */
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-download__guide-subtitle:first-of-type {
  margin-top: 0;
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-download__step-list li {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
  position: relative;
  padding-left: 50px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-download__step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button */
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.page-download__guide-image-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  position: sticky; /* Sticky for better UX on scroll */
  top: 100px; /* Offset from fixed header */
}

.page-download__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-download__qr-code-box {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

.page-download__qr-title {
  font-size: 22px;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-download__qr-code-image {
  width: 200px;
  height: 200px;
  border: 5px solid #FFF6D6; /* Text Main */
  border-radius: 5px;
  margin-bottom: 15px;
  object-fit: contain;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-download__qr-text {
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
}


/* --- FAQ Section --- */
.page-download__faq-section {
  padding: 60px 0;
  background: #0A0A0A; /* Background */
}

.page-download__faq-list {
  margin-top: 40px;
}

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD36B; /* Glow */
  font-weight: 600;
  font-size: 18px;
}
details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
  display: none;
}
details.page-download__faq-item summary.page-download__faq-question:hover {
  background: #1a1a1a;
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B; /* Glow */
}
.page-download__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
  padding: 0 25px 20px;
  background: #1a1a1a; /* Slightly darker than Card BG */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6; /* Text Main */
  font-size: 16px;
}
.page-download__faq-answer p {
  margin: 0;
}


/* --- Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: 42px;
  }
  .page-download__section-title {
    font-size: 32px;
  }
  .page-download__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-download__guide-content {
    flex-direction: column;
    align-items: center;
  }
  .page-download__guide-image-wrapper {
    position: static; /* Remove sticky on smaller screens */
    top: auto;
    width: 100%;
    max-width: 600px;
  }
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  /* General */
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-download__container {
    padding: 15px;
  }
  .page-download__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
  }
  .page-download__section-title::after {
    width: 60px;
    height: 3px;
  }

  /* Hero Section */
  .page-download__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 30px;
  }
  .page-download__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__hero-content {
    padding: 25px 15px;
    margin-top: -80px; /* Adjust overlap for mobile */
    max-width: 100%; /* Ensure container fills width */
    width: 100%; /* Ensure container fills width */
    box-sizing: border-box;
  }
  .page-download__main-title {
    font-size: clamp(28px, 8vw, 36px); /* Responsive H1 */
    margin-bottom: 15px;
  }
  .page-download__description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%; /* Ensure container fills width */
    max-width: 100%; /* Ensure container fills width */
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-download__hero-image-wrapper,
  .page-download__features-section,
  .page-download__guide-section,
  .page-download__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Features Section */
  .page-download__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-download__feature-card {
    padding: 25px;
  }
  .page-download__feature-icon {
    width: 80px;
    height: 80px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
  }
  .page-download__card-title {
    font-size: 20px;
  }
  .page-download__card-text {
    font-size: 15px;
  }

  /* Guide Section */
  .page-download__guide-content {
    gap: 30px;
  }
  .page-download__guide-subtitle {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 15px;
  }
  .page-download__step-list li {
    padding: 15px 15px 15px 50px;
    font-size: 15px;
  }
  .page-download__guide-image-wrapper {
    gap: 20px;
  }
  .page-download__guide-image,
  .page-download__qr-code-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
  }
  .page-download__qr-code-box {
    max-width: 100%;
    width: 100%;
    padding: 15px;
  }
  .page-download__qr-title {
    font-size: 20px;
  }
  .page-download__qr-code-image {
    width: 180px;
    height: 180px;
  }
  .page-download__qr-text {
    font-size: 15px;
  }

  /* FAQ Section */
  details.page-download__faq-item summary.page-download__faq-question {
    padding: 15px 20px;
  }
  .page-download__faq-qtext {
    font-size: 16px;
  }
  .page-download__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 24px;
  }
  details.page-download__faq-item .page-download__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }
}