/* style/download.css */

:root {
  --fly88-primary-color: #11A84E;
  --fly88-secondary-color: #22C768;
  --fly88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --fly88-card-bg: #11271B;
  --fly88-background: #08160F;
  --fly88-text-main: #F2FFF6;
  --fly88-text-secondary: #A7D9B8;
  --fly88-border-color: #2E7A4E;
  --fly88-glow-color: #57E38D;
  --fly88-gold-color: #F2C14E;
  --fly88-divider-color: #1E3A2A;
  --fly88-deep-green: #0A4B2C;
}

.page-download {
  background-color: var(--fly88-background);
  color: var(--fly88-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: 2.5em;
  color: var(--fly88-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-download__dark-bg {
  background-color: var(--fly88-background);
  color: var(--fly88-text-main);
}

.page-download__dark-section {
  background-color: var(--fly88-deep-green);
  color: var(--fly88-text-main);
  padding: 60px 0;
}

.page-download__card {
  background-color: var(--fly88-card-bg);
  color: var(--fly88-text-main);
  border: 1px solid var(--fly88-border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.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: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-download__btn-primary {
  background: var(--fly88-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-download__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-download__btn-secondary:hover {
  background-color: var(--fly88-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0;
  padding-top: 10px; /* Small decorative top padding */
  overflow: hidden;
}

.page-download__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.page-download__hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-download__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--fly88-text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 1.2em;
  color: var(--fly88-text-secondary);
  margin-bottom: 30px;
}

.page-download__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
}

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

.page-download__feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
}

.page-download__feature-title {
  font-size: 1.5em;
  color: var(--fly88-text-main);
  margin-bottom: 10px;
}

.page-download__feature-text {
  color: var(--fly88-text-secondary);
  font-size: 1em;
}

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

.page-download__download-steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Platform | QR | Platform */
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

.page-download__download-platform {
  background-color: var(--fly88-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--fly88-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__platform-title {
  font-size: 1.8em;
  color: var(--fly88-gold-color);
  text-align: center;
  margin-bottom: 25px;
}

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

.page-download__step-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: var(--fly88-text-secondary);
  font-size: 1.05em;
}

.page-download__step-number {
  background-color: var(--fly88-primary-color);
  color: #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.page-download__download-qr-code {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.page-download__qr-image {
  width: 250px;
  height: 250px;
  max-width: 100%;
  height: auto;
  border: 5px solid #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block;
  object-fit: contain;
}

.page-download__qr-caption {
  color: var(--fly88-text-main);
  margin-top: 20px;
  font-size: 1.1em;
  font-weight: bold;
}

.page-download__btn-download-android,
.page-download__btn-download-ios {
  width: 100%;
  margin-top: 20px;
}

/* App Features Section */
.page-download__app-features-section {
  padding: 80px 0;
}

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

.page-download__feature-card {
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-download__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-download__card-title {
  font-size: 1.4em;
  color: var(--fly88-text-main);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-download__card-text {
  color: var(--fly88-text-secondary);
  font-size: 1em;
  padding: 0 15px 15px;
}

/* Security Section */
.page-download__security-section {
  padding: 80px 0;
}

.page-download__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.page-download__security-list li {
  display: flex;
  align-items: flex-start;
  color: var(--fly88-text-secondary);
  font-size: 1.05em;
}

.page-download__list-icon {
  color: var(--fly88-glow-color);
  font-size: 1.5em;
  margin-right: 15px;
  flex-shrink: 0;
}

.page-download__security-callout {
  font-size: 1.2em;
  color: var(--fly88-gold-color);
  text-align: center;
  margin-top: 40px;
  font-weight: bold;
}

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

.page-download__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-download__faq-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--fly88-border-color);
}

.page-download__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--fly88-text-main);
  background-color: var(--fly88-card-bg);
  position: relative;
  user-select: none;
}

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

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

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  color: var(--fly88-primary-color);
}

.page-download__faq-answer {
  padding: 20px 25px;
  background-color: var(--fly88-card-bg);
  border-top: 1px solid var(--fly88-divider-color);
  color: var(--fly88-text-secondary);
  font-size: 1.05em;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-download__hero-content {
    text-align: center;
  }

  .page-download__download-steps-grid {
    grid-template-columns: 1fr;
  }

  .page-download__download-qr-code {
    order: -1; /* Move QR code to top on smaller screens */
    margin-bottom: 40px;
  }

  .page-download__security-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-download__container {
    padding: 0 15px;
  }

  .page-download__section-title {
    font-size: 2em;
  }

  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__app-features-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-bottom-section {
    padding: 40px 0;
  }

  .page-download__hero-image-wrapper {
    margin-top: 40px;
  }

  .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-left: 15px;
    padding-right: 15px;
  }

  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__app-features-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-bottom-section,
  .page-download__download-platform,
  .page-download__feature-item,
  .page-download__feature-card,
  .page-download__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__qr-image {
    width: 200px;
    height: 200px;
  }

  .page-download__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-download__faq-answer {
    padding: 15px 20px;
  }

  .page-download__video-section {
    padding-top: 10px !important;
  }
  
  /* Ensure images within content areas are not smaller than 200px if directly set */
  .page-download p img, .page-download li img {
    min-width: 200px !important;
    min-height: 200px !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .page-download__feature-icon, .page-download__card-image {
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
}