/* style/download.css */

/* Base styles for page-download */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

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

.page-download__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff; /* Default for dark sections */
}

.page-download__text-content {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(135deg, #26A9E0, #007bb6); /* Brand color gradient */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-download__hero-content {
  max-width: 900px;
  z-index: 10;
  margin-bottom: 40px;
}

.page-download__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

.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.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

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

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Lighter dark background for contrast */
  color: #ffffff;
}

.page-download__benefits-section .page-download__section-title {
  color: #ffffff;
}

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

.page-download__benefit-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

.page-download__benefit-text {
  font-size: 1rem;
  color: #f0f0f0;
}

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

.page-download__how-to-download-section .page-download__section-title {
  color: #ffffff;
}

.page-download__download-steps {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-download__platform-guide {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__platform-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 25px;
  color: #26A9E0;
  text-align: center;
}

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

.page-download__step-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #f0f0f0;
}

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

.page-download__step-list p {
  margin: 0;
}

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

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

.page-download__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

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

.page-download__features-games-section .page-download__section-title {
  color: #ffffff;
}

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

.page-download__game-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-download__game-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}

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

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

.page-download__game-description {
  font-size: 0.95rem;
  color: #cccccc;
}

.page-download__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
}

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

.page-download__promotions-section .page-download__section-title {
  color: #ffffff;
}

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

.page-download__promo-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-download__promo-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #EA7C07; /* Highlight with login color */
}

.page-download__promo-description {
  font-size: 1rem;
  color: #f0f0f0;
}

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

.page-download__faq-section .page-download__section-title {
  color: #ffffff;
}

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

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

.page-download__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-download__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-download__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

.page-download__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

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

/* Final CTA Section */
.page-download__cta-final {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
  text-align: center;
}

.page-download__cta-final .page-download__section-title {
  color: #ffffff;
}

/* --- Responsive Styles --- */

/* General image responsiveness */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none !important; /* Ensure no filter is used on images */
}

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

  .page-download__container,
  .page-download__hero-section,
  .page-download__benefits-section,
  .page-download__how-to-download-section,
  .page-download__features-games-section,
  .page-download__promotions-section,
  .page-download__faq-section,
  .page-download__cta-final {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

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

  .page-download__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

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

  .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; */ /* Handled by container padding */
    /* padding-right: 15px; */ /* Handled by container padding */
  }

  .page-download__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-download__benefits-section,
  .page-download__how-to-download-section,
  .page-download__features-games-section,
  .page-download__promotions-section,
  .page-download__faq-section,
  .page-download__cta-final {
    padding-top: 40px;
    padding-bottom: 40px;
  }

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

  .page-download__platform-guide {
    max-width: 100%;
  }

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

  .page-download__benefit-title,
  .page-download__promo-title {
    font-size: 1.3rem;
  }

  .page-download__game-title {
    font-size: 1.2rem;
  }

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

  .page-download__faq-toggle {
    font-size: 1.2rem;
  }

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

  /* Ensure all content area images are responsive */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Content area images must not display smaller than 200px (this is a general rule, specific selectors below) */
  .page-download__hero-image,
  .page-download__content-image,
  .page-download__platform-image {
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: cover;
  }

  /* Ensure video containers are responsive (though no video in current HTML) */
  .page-download__video-section,
  .page-download__video-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;
  }
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Color Contrast Adjustments for Dark Body Background */
.page-download__dark-bg .page-download__section-title,
.page-download__dark-bg .page-download__main-title,
.page-download__dark-bg .page-download__description,
.page-download__dark-bg .page-download__text-content {
  color: #ffffff;
}

.page-download__light-bg .page-download__section-title,
.page-download__light-bg .page-download__text-content {
  color: #ffffff;
}

.page-download__benefit-card,
.page-download__game-card,
.page-download__promo-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly more opaque for better visibility on dark */
  color: #ffffff;
}

.page-download__faq-item summary {
  background: rgba(255, 255, 255, 0.08);
  color: #26A9E0;
}

.page-download__faq-answer {
  background: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

.page-download__faq-item[open] .page-download__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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