/* style/download.css */

/* Base styles for the page content, ensuring text color contrasts with body background (#000000) */
.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for the page, contrasting with dark body background */
  background-color: transparent; /* Main content background is transparent to show body background */
}

.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: #ffffff; /* Default for dark sections */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Default for dark sections */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Specific text colors for light background sections */
.page-download__benefits-section .page-download__section-title,
.page-download__app-features-section .page-download__section-title,
.page-download__security-section .page-download__section-title,
.page-download__cta-bottom-section .page-download__section-title {
    color: #26A9E0; /* Brand color for titles on light backgrounds */
}

.page-download__benefits-section .page-download__section-description,
.page-download__app-features-section .page-download__section-description,
.page-download__security-section .page-download__section-description,
.page-download__cta-bottom-section .page-download__section-description {
    color: #333333; /* Dark text for descriptions on light backgrounds */
}

.page-download a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
}

.page-download a:hover {
  text-decoration: underline;
}

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

.page-download__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-download__btn-primary:hover {
  background-color: #1a7fb0;
  border-color: #1a7fb0;
}

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

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

.page-download__large-button {
    padding: 15px 30px;
    font-size: 1.2em;
    min-width: 250px;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #000000; /* Fallback for hero section */
}

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

.page-download__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Additional overlay for text contrast */
  z-index: 2;
}

.page-download__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

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

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

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

/* Video Section */
.page-download__video-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark section background */
  color: #ffffff;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

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

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light section background */
  color: #333333;
}

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

.page-download__benefit-card {
  background-color: #f8f8f8; /* Light card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-download__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-download__card-title {
  font-size: 1.5em;
  color: #26A9E0; /* Brand color for card titles */
  margin-bottom: 15px;
}

.page-download__benefit-card p {
    color: #555555;
}

/* How to Download Section */
.page-download__how-to-download {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark section background */
  color: #ffffff;
}

.page-download__download-platform {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for contrast */
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-download__platform-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.page-download__qr-code-wrapper {
  text-align: center;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__qr-code-image {
  width: 250px; /* Reduced size for better display within content */
  height: 250px;
  display: block;
  margin: 0 auto 15px;
}

.page-download__qr-text {
  color: #333333; /* Dark text on white QR background */
  font-weight: bold;
}

.page-download__instruction-list {
  list-style-type: decimal;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 25px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-download__instruction-list li {
  margin-bottom: 15px;
}

.page-download__instruction-list strong {
    color: #ffffff;
}

.page-download__platform-button {
    margin-top: 30px;
    min-width: 220px;
}

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

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

.page-download__feature-item {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

.page-download__feature-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-download__feature-item p {
    color: #555555;
}

.page-download__app-features-image-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-download__app-features-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto;
}

/* Popular Games Section */
.page-download__popular-games-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-download__game-card {
  background-color: rgba(255, 255, 255, 0.9); /* Light background for cards on dark section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-download__game-card .page-download__card-title {
    color: #26A9E0;
}

.page-download__game-card .page-download__card-title a {
    color: #26A9E0; /* Link color on light card */
}

.page-download__game-card .page-download__card-title a:hover {
    color: #1a7fb0;
}

.page-download__game-card p {
    color: #555555;
}

.page-download__game-showcase-image-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-download__game-showcase-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto;
}

/* Security Section */
.page-download__security-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-download__security-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
}

.page-download__security-item .page-download__card-title {
    color: #26A9E0;
}

.page-download__security-item p {
    color: #555555;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-download__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-download__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  line-height: 1;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

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

.page-download__cta-subtext {
    margin-top: 20px;
    font-size: 1.1em;
    color: #555555;
}

.page-download__text-link {
    color: #26A9E0;
    font-weight: bold;
}

.page-download__text-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: 3em;
  }
  .page-download__intro-description {
    font-size: 1.1em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
}

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

  /* Fixed header offset for mobile */
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-download__main-title {
    font-size: 2.5em;
  }
  .page-download__intro-description {
    font-size: 1em;
  }
  .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__container {
    padding: 0 15px;
  }

  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-description {
    font-size: 1em;
  }

  .page-download__video-section,
  .page-download__benefits-section,
  .page-download__how-to-download,
  .page-download__app-features-section,
  .page-download__popular-games-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-bottom-section {
    padding: 60px 0;
  }

  /* Image responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-download__video-section .page-download__container,
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Content area images - enforce min size */
  .page-download__benefits-grid,
  .page-download__features-grid,
  .page-download__games-grid,
  .page-download__security-features {
    grid-template-columns: 1fr;
  }
  
  .page-download__download-platform {
    padding: 25px;
  }

  .page-download__platform-content {
    flex-direction: column;
  }

  .page-download__instruction-list {
    padding-left: 20px;
    font-size: 1em;
  }

  /* Containers with images/buttons */
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .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; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: 2em;
  }
  .page-download__hero-section {
    min-height: 500px;
  }
  .page-download__qr-code-image {
    width: 200px;
    height: 200px;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-download__hero-background-image,
.page-download__qr-code-image,
.page-download__app-features-image,
.page-download__game-showcase-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific text color for elements on light backgrounds */
.page-download__benefit-card,
.page-download__feature-item,
.page-download__game-card,
.page-download__security-item {
    color: #333333; /* Dark text on light cards */
}

.page-download__benefit-card p,
.page-download__feature-item p,
.page-download__game-card p,
.page-download__security-item p {
    color: #555555; /* Slightly lighter dark text for paragraphs */
}

.page-download__qr-text {
    color: #333333; /* Dark text on white background of QR code wrapper */
}

/* Ensure no filter on images */
.page-download img {
    filter: none !important;
}

/* Ensure correct colors for section titles and descriptions on dark sections (like video, how-to, popular games, faq) */
.page-download__video-section .page-download__section-title,
.page-download__how-to-download .page-download__section-title,
.page-download__popular-games-section .page-download__section-title,
.page-download__faq-section .page-download__section-title {
    color: #ffffff;
}

.page-download__video-section .page-download__section-description,
.page-download__how-to-download .page-download__section-description,
.page-download__popular-games-section .page-download__section-description,
.page-download__faq-section .page-download__section-description {
    color: #f0f0f0;
}