/* style/download.css */

/* Custom Colors */
:root {
  --okplay-primary: #F2C14E;
  --okplay-secondary: #FFD36B;
  --okplay-card-bg: #111111;
  --okplay-bg: #0A0A0A;
  --okplay-text-main: #FFF6D6;
  --okplay-border: #3A2A12;
  --okplay-glow: #FFD36B;
  --okplay-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-download {
  font-family: Arial, sans-serif;
  color: var(--okplay-text-main); /* Default text color for the page */
  background-color: var(--okplay-bg); /* Default background for the page */
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

.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: var(--okplay-primary);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--okplay-text-main);
}

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

.page-download__btn-primary {
  background: var(--okplay-button-gradient);
  color: #000000; /* Contrast with gold gradient */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-download__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-download__btn-secondary {
  background-color: transparent;
  color: var(--okplay-primary);
  border: 2px solid var(--okplay-primary);
}

.page-download__btn-secondary:hover {
  background-color: var(--okplay-primary);
  color: #000000; /* Contrast with primary color */
}

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

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

/* Hero Section */
.page-download__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
}

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

.page-download__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for design */
  background: var(--okplay-bg); /* Ensure readability */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-download__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  color: var(--okplay-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  letter-spacing: -0.02em;
}

.page-download__hero-description {
  font-size: 1.2em;
  color: var(--okplay-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General Sections */
.page-download__why-download-section,
.page-download__how-to-download-section,
.page-download__key-features-section,
.page-download__supported-devices-section,
.page-download__security-section,
.page-download__faq-section,
.page-download__cta-final-section {
  padding: 60px 0;
  background-color: var(--okplay-bg);
}

.page-download__dark-section {
  background-color: var(--okplay-card-bg);
  padding: 80px 0;
  border-radius: 15px;
  margin: 40px auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Why Download Section */
.page-download__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__feature-card {
  background-color: var(--okplay-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--okplay-border);
}

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

.page-download__feature-icon {
  width: 100%;
  height: auto;
  max-width: 100px; /* Adjusted from small icon rule, still visible */
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-download__feature-title {
  font-size: 1.5em;
  color: var(--okplay-primary);
  margin-bottom: 15px;
}

.page-download__feature-text {
  font-size: 1em;
  color: var(--okplay-text-main);
}

/* How to Download Section */
.page-download__download-steps-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.page-download__download-platform {
  flex: 1;
  min-width: 300px;
  background-color: var(--okplay-card-bg);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--okplay-border);
}

.page-download__platform-title {
  font-size: 1.8em;
  color: var(--okplay-secondary);
  text-align: center;
  margin-bottom: 30px;
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-download__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  color: var(--okplay-text-main);
}

.page-download__step-number {
  background: var(--okplay-button-gradient);
  color: #000000;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  flex-shrink: 0;
  margin-right: 15px;
}

.page-download__step-text {
  flex-grow: 1;
  font-size: 1.05em;
}

.page-download__step-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  display: block;
  margin: 30px auto 0;
  border-radius: 10px;
  border: 1px solid var(--okplay-border);
  object-fit: contain;
}

/* Key Features Section */
.page-download__features-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__feature-detail-card {
  background-color: var(--okplay-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--okplay-border);
}

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

.page-download__feature-detail-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-download__feature-detail-title {
  font-size: 1.6em;
  color: var(--okplay-secondary);
  margin-bottom: 15px;
}

.page-download__feature-detail-text {
  font-size: 1em;
  color: var(--okplay-text-main);
}

/* Supported Devices Section */
.page-download__device-compatibility-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-download__device-card {
  background-color: var(--okplay-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  flex: 1;
  min-width: 280px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--okplay-border);
}

.page-download__device-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-download__device-title {
  font-size: 1.5em;
  color: var(--okplay-primary);
  margin-bottom: 10px;
}

.page-download__device-text {
  font-size: 1em;
  color: var(--okplay-text-main);
}

.page-download__compatibility-note {
  text-align: center;
  margin-top: 30px;
  font-style: italic;
  color: var(--okplay-text-main);
}

/* Security Section */
.page-download__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-download__security-text-block {
  flex: 2;
  min-width: 300px;
}

.page-download__security-sub-title {
  font-size: 1.6em;
  color: var(--okplay-secondary);
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-download__security-paragraph {
  font-size: 1em;
  color: var(--okplay-text-main);
  margin-bottom: 15px;
}

.page-download__security-paragraph a {
  color: var(--okplay-primary);
  text-decoration: underline;
}

.page-download__security-paragraph a:hover {
  color: var(--okplay-secondary);
}

.page-download__security-image {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--okplay-border);
  min-height: 200px;
}

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

.page-download__faq-item {
  background-color: var(--okplay-card-bg);
  border: 1px solid var(--okplay-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--okplay-card-bg);
  color: var(--okplay-primary);
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

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

.page-download__faq-title {
  margin: 0;
  font-size: 1em;
  color: var(--okplay-primary);
}

.page-download__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--okplay-secondary);
  transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(0deg); /* Explicitly set for '-' */
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--okplay-text-main);
}

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

.page-download__faq-text {
  margin: 0;
  font-size: 1em;
  color: var(--okplay-text-main);
}

/* Video Section (Placeholder in CSS as per instructions, even if not in HTML) */
.page-download__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-download__video-container {
  width: 100%; /* Important for desktop */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

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

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

@media (max-width: 768px) {
  .page-download {
    font-size: 15px;
  }

  .page-download__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

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

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

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

  .page-download__btn-primary,
  .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__key-features-section,
  .page-download__supported-devices-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    padding: 40px 0;
  }

  .page-download__feature-card,
  .page-download__download-platform,
  .page-download__feature-detail-card,
  .page-download__device-card {
    padding: 20px;
  }

  .page-download__feature-icon,
  .page-download__feature-detail-image,
  .page-download__device-image,
  .page-download__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

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

  .page-download__faq-answer {
    padding: 0 20px;
  }

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

  /* Ensure all image containers are responsive */
  .page-download__hero-image-wrapper,
  .page-download__feature-card,
  .page-download__download-platform,
  .page-download__feature-detail-card,
  .page-download__device-card,
  .page-download__security-content,
  .page-download__security-text-block,
  .page-download__faq-list,
  .page-download__cta-final-section .page-download__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Video section specific mobile rules */
  .page-download__video-section {
    padding-top: 10px !important; /* Ensure small top padding, not --header-offset */
  }
  .page-download__video-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .page-download__video {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-download__hero-content {
    margin-top: -40px;
  }
  .page-download__hero-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
  }
  .page-download__section-title {
    font-size: 1.5em;
  }
  .page-download__feature-icon {
    min-width: 150px;
    min-height: 150px;
  }
}