/* style/download.css */

/* --- Base Styles --- */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg); /* Inherit from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.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: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* --- Buttons --- */
.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  max-width: 100%;
}

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

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

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

.page-download__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* For mobile responsiveness */
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  overflow: hidden;
}

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

/* --- Hero Section --- */
.page-download__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly darker background for hero */
  color: #ffffff;
  flex-wrap: wrap;
}

.page-download__hero-content {
  flex: 1;
  min-width: 300px;
  padding-right: 40px;
}

.page-download__main-title {
  font-size: 3.5em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-download__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-download__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-download__hero-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block; /* Ensures max-width works as expected */
  margin: 0 auto;
}

/* --- Video Section --- */
.page-download__video-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background */
  color: #ffffff;
  text-align: center;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
}

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

.page-download__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Make sure the overlay is clickable */
  display: block;
}

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

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

.page-download__benefit-card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff; /* Ensure text is light on dark card background */
}

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

.page-download__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-download__download-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-download__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-download__step-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__step-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-download__step-list li {
  margin-bottom: 10px;
}

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

/* --- Games Overview Section --- */
.page-download__games-overview-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-download__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-download__game-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__game-card .page-download__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-download__game-card .page-download__card-title a:hover {
  text-decoration: underline;
}

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

.page-download__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-download__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0; /* Question text color */
  list-style: none; /* Remove default marker */
}

.page-download__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-download__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-download__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* --- CTA Section (Dark) --- */
.page-download__cta-section.page-download__dark-section {
  background-color: #26A9E0; /* Primary brand color as background */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-download__cta-section.page-download__dark-section .page-download__section-title {
  color: #ffffff; /* White title on brand color background */
}

.page-download__cta-section.page-download__dark-section .page-download__section-description {
  color: #ffffff;
}

.page-download__cta-section.page-download__dark-section .page-download__btn-primary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-download__cta-section.page-download__dark-section .page-download__btn-primary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-download__cta-section.page-download__dark-section .page-download__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-download__cta-section.page-download__dark-section .page-download__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}


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

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

  .page-download__container {
    padding: 0 15px !important;
  }

  .page-download__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
  }

  .page-download__hero-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

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

  .page-download__description {
    font-size: 1em;
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-download__cta-buttons .page-download__btn-primary,
  .page-download__cta-buttons .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__benefits-grid,
  .page-download__download-steps,
  .page-download__games-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-download__step-title {
    font-size: 1.5em;
  }

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

  .page-download__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 1em;
  }

  /* Image responsiveness */
  .page-download img {
    max-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;
  }
  
  /* All containing elements for images/videos/buttons must also be responsive */
  .page-download__section,
  .page-download__card,
  .page-download__hero-section,
  .page-download__video-section,
  .page-download__video-wrapper,
  .page-download__benefits-section,
  .page-download__benefit-card,
  .page-download__how-to-download-section,
  .page-download__step-card,
  .page-download__games-overview-section,
  .page-download__game-card,
  .page-download__faq-section,
  .page-download__faq-item,
  .page-download__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-download__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header on mobile */
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: 2em;
  }
  .page-download__section-title {
    font-size: 1.5em;
  }
  .page-download__hero-content {
    padding: 0;
  }
}

/* Ensure contrast for specific elements if needed */
.page-download__dark-section {
  background: #26A9E0;
  color: #ffffff;
}

.page-download a {
  color: #26A9E0; /* Default link color, ensure contrast */
}
.page-download a:hover {
  color: #1a8cc4;
}

.page-download p a, .page-download li a {
  color: #26A9E0;
}
.highlight { /* For highlighting keywords as per prompt */
  color: #ffffff;
  font-weight: bold;
}