/* style/download.css */

/* Base Styles & Typography */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

.page-download__dark-bg {
  background-color: var(--dark-bg-1, #333333);
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-download__section-title {
  font-size: 2.5em;
  color: #E44D26;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 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;
  border: none;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #E44D26;
  color: #ffffff;
}

.page-download__btn-primary:hover {
  background-color: #c93d20;
}

.page-download__btn-secondary {
  background-color: #ffffff;
  color: #E44D26;
  border: 2px solid #E44D26;
}

.page-download__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #c93d20;
  border-color: #c93d20;
}

.page-download__btn-icon {
  margin-right: 10px;
  width: 32px;
  height: 32px;
  vertical-align: middle;
}

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

/* Hero Section */
.page-download__hero-section {
  padding: 80px 0;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-download__hero-section .page-download__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-download__hero-content {
  flex: 1;
  text-align: left;
}

.page-download__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-download__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

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

.page-download__hero-app-screenshot {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-download__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-download__feature-card:hover {
  transform: translateY(-10px);
}

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

.page-download__feature-title {
  font-size: 1.5em;
  color: #E44D26;
  margin-bottom: 15px;
}

.page-download__feature-description {
  color: #555555;
}

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

.page-download__download-steps-wrapper {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
}

.page-download__download-platform {
  flex: 1;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-download__platform-title {
  font-size: 2em;
  color: #333333;
  margin-bottom: 25px;
  text-align: center;
}

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

.page-download__step-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #555555;
}

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

.page-download__btn-download-small {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 1em;
}

.page-download__qr-code-section {
  text-align: center;
  margin-top: 40px;
}

.page-download__qr-code-image {
  max-width: 300px;
  height: auto;
  border: 5px solid #E44D26;
  border-radius: 10px;
  margin-bottom: 20px;
}

.page-download__qr-code-text {
  font-size: 1.2em;
  color: #333333;
  font-weight: bold;
}

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

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

.page-download__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-download__game-card:hover {
  transform: translateY(-5px);
}

.page-download__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-download__game-card-title {
  font-size: 1.4em;
  color: #E44D26;
  padding: 15px;
  margin-bottom: 5px;
}

.page-download__game-card-text {
  color: #555555;
  padding: 0 15px 15px;
}

.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 5px 20px rgba(0, 0, 0, 0.2);
}

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

/* Exclusive Bonus Section */
.page-download__exclusive-bonus-section {
  padding: 80px 0;
  text-align: center;
}

.page-download__bonus-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.page-download__bonus-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-download__bonus-title {
  font-size: 1.5em;
  color: #E44D26;
  margin-bottom: 15px;
}

.page-download__bonus-text {
  color: #f0f0f0;
}

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

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

.page-download__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.page-download__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333333;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #E44D26;
  transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
}

/* Final CTA Section */
.page-download__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-download__final-cta-section .page-download__section-title {
  font-size: 2.8em;
  color: #ffffff;
}

.page-download__final-cta-section .page-download__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

.page-download__final-cta-section .page-download__cta-buttons {
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }
  .page-download__hero-description {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-download__container {
    padding: 0 15px;
  }

  .page-download__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-download__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-download__hero-section .page-download__container {
    flex-direction: column;
    text-align: center;
  }

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

  .page-download__hero-title {
    font-size: 2.5em;
  }

  .page-download__hero-description {
    font-size: 1.1em;
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download a[class*="button"],
  .page-download a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__hero-image-wrapper {
    order: -1; /* Move image above text on mobile */
    margin-bottom: 30px;
  }

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

  .page-download__download-platform {
    padding: 20px;
  }

  .page-download__platform-title {
    font-size: 1.8em;
  }

  .page-download__step-item {
    font-size: 1em;
    padding-left: 25px;
  }

  .page-download__step-item::before {
    width: 22px;
    height: 22px;
    font-size: 0.8em;
  }

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

  .page-download__video-wrapper {
    padding-bottom: 75%; /* Adjust for 4:3 aspect ratio if needed or keep 16:9 */
  }

  .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__video-section,
  .page-download__video-container,
  .page-download__video-wrapper,
  .page-download__cta-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    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: var(--header-offset, 120px) !important; /* Consistent with common fragment */
  }

  .page-download__faq-question {
    padding: 15px;
  }
  .page-download__faq-question h3 {
    font-size: 1.1em;
  }
  .page-download__faq-answer {
    padding: 0 15px;
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px;
  }

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

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-download__final-cta-section .page-download__section-title {
    font-size: 1.8em;
  }
}