/* style/download.css */

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

/* Shared container for content width */
.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-download__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  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;
  text-align: center;
  overflow: hidden;
}

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

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-download__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-download__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp for responsive font-size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

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

.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 rgba(87, 227, 141, 0.6); /* Glow */
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-download__btn-secondary:hover {
  background-color: #57E38D;
  color: #08160F; /* Background for contrast */
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6); /* Glow */
}

.page-download__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
}

.page-download__btn-full-width {
  width: 100%;
  margin-top: 20px;
}

/* Video Section */
.page-download__video-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

.page-download__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 20px;
}

.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;
  margin-top: 40px;
}

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

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

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

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

.page-download__benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-download__benefit-icon {
  width: 200px; /* Min size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-download__benefit-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-download__benefit-text {
  color: #A7D9B8; /* Text Secondary */
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

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

.page-download__step-title {
  font-size: 1.8em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-download__step-text {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
}

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

.page-download__qr-codes {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.page-download__qr-item {
  text-align: center;
}

.page-download__qr-image {
  width: 250px;
  height: 250px;
  object-fit: contain;
  background-color: #F2FFF6;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-download__qr-label {
  color: #F2FFF6; /* Text Main */
  margin-top: 10px;
  font-weight: bold;
}

/* Game Selection Section */
.page-download__game-selection-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

.page-download__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-download__game-card .page-download__game-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  padding: 15px 20px 5px;
}

.page-download__game-card .page-download__game-text {
  color: #A7D9B8; /* Text Secondary */
  padding: 0 20px 20px;
}

/* Promotions Section */
.page-download__promotions-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

.page-download__promotion-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__promotion-list li {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  text-align: left;
  font-size: 1.1em;
  border-left: 5px solid #F2C14E; /* Gold */
}

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

.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: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-download__faq-item summary {
  display: block;
  cursor: pointer;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  position: relative;
  list-style: none;
  background-color: #1E3A2A; /* Divider */
}

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

.page-download__faq-item summary:hover {
  background-color: #2E7A4E; /* Border */
}

.page-download__faq-qtext {
  padding-right: 30px; /* Space for toggle icon */
}

.page-download__faq-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  background-color: #11271B; /* Card BG */
  border-top: 1px solid #2E7A4E; /* Border */
}

/* Final CTA Section */
.page-download__final-cta-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

/* General Content Area Text */
.page-download p,
.page-download li {
  color: #A7D9B8; /* Text Secondary */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__section-title {
    font-size: 2em;
  }

  .page-download__hero-title {
    font-size: clamp(2em, 4vw, 3em);
  }

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

@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: 1.8em;
    margin-bottom: 15px;
  }

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

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

  .page-download__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-download__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-download__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  /* Buttons mobile adaptation */
  .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__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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Video mobile adaptation */
  .page-download__video-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  
  .page-download__video-container {
    padding: 0 15px;
  }

  .page-download__video-wrapper {
    padding-bottom: 56.25%; /* Ensure aspect ratio */
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image mobile adaptation */
  .page-download img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-image-wrapper,
  .page-download__download-steps,
  .page-download__game-cards-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-download__qr-codes {
    flex-direction: column;
    gap: 20px;
  }

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

  .page-download__benefit-card,
  .page-download__step-card,
  .page-download__game-card {
    padding: 20px;
  }

  .page-download__benefit-icon {
    width: 150px;
    height: auto;
  }

  .page-download__game-image {
    height: 150px;
  }

  .page-download__promotion-list li {
    font-size: 1em;
    padding: 12px 15px;
  }

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

  .page-download__faq-qtext {
    padding-right: 25px;
  }

  .page-download__faq-toggle {
    right: 15px;
    font-size: 1.2em;
  }

  .page-download__faq-answer {
    font-size: 0.95em;
    padding: 15px;
  }
}

/* Ensure no image filters */
.page-download img {
  filter: none;
}

/* Ensure content area image size lower bound */
.page-download__benefit-icon, .page-download__step-image, .page-download__game-image, .page-download__qr-image {
    min-width: 200px;
    min-height: 200px;
    /* These values are for minimum display size, actual width/height attributes are for aspect ratio */
    /* The width/height attributes on the HTML img tag define the intrinsic aspect ratio. */
    /* CSS max-width: 100% and height: auto ensure responsiveness without making them too small below 200px */
}

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

.page-download__video {
    min-width: 200px;
    min-height: 200px;
}

/* Specific overrides for mobile to ensure minimum sizes are respected or scaled down proportionally */
@media (max-width: 768px) {
    .page-download__benefit-icon {
        width: 150px !important; /* This is an example, but actual display size should not be below 200px */
        height: auto !important;
        /* If the original width/height on img tag is e.g. 400x300, and this makes it 150px, it's problematic if the original was already <200px */
        /* Re-evaluating: the goal is that the *displayed* size is not less than 200px. */
        /* max-width: 100%; height: auto; will prevent overflow, but if the container is small, the image will be small */
        /* The previous instruction was: 'any width or height smaller than 200 pixels'. So if the container is less than 200px, the image will also be. */
        /* This rule means that the CSS *cannot* explicitly set a width/height that would make it smaller than 200px. */
        /* If the natural flow makes it smaller due to container size, that's different. */
        /* Therefore, the min-width/min-height properties are the correct way to enforce this in CSS. */
        min-width: 200px !important; 
        min-height: auto !important; /* height: auto ensures aspect ratio, min-height for actual minimum display */
    }
    .page-download__step-image, .page-download__game-image {
        min-width: 200px !important;
        min-height: auto !important;
    }
    .page-download__qr-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}