/* style/download.css */

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

.page-download {
  color: var(--jiliaa-text-main); /* Default text color for dark background */
  background-color: var(--jiliaa-background); /* Default background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

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

/* Sections */
.page-download__hero-section,
.page-download__why-download-section,
.page-download__how-to-download-section,
.page-download__system-requirements-section,
.page-download__security-section,
.page-download__games-section,
.page-download__faq-section,
.page-download__cta-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-download__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure image wrapper is full width */
  margin-bottom: 20px;
}

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

.page-download__hero-content {
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-download__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--jiliaa-primary);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

.page-download__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-download__section-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Background Colors */
.page-download__dark-bg {
  background-color: var(--jiliaa-background);
  color: var(--jiliaa-text-main);
}

.page-download__dark-section {
  background-color: var(--jiliaa-background);
  color: var(--jiliaa-text-main);
}

.page-download__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary,
.page-download__download-button,
.page-download__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-download__btn-primary,
.page-download__download-button,
.page-download__cta-button {
  background: var(--jiliaa-button-gradient);
  color: #ffffff; /* White text on button gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-download__btn-primary:hover,
.page-download__download-button:hover,
.page-download__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

.page-download__btn-secondary:hover {
  background-color: var(--jiliaa-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Cards */
.page-download__card {
  background-color: var(--jiliaa-card-bg);
  border: 1px solid var(--jiliaa-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: var(--jiliaa-text-main);
}

/* 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-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-download__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--jiliaa-primary);
}

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

/* How to Download Section */
.page-download__download-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-download__download-steps-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-download__step-item {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
}

.page-download__step-number {
  background-color: var(--jiliaa-primary);
  color: #ffffff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-right: 15px;
}

.page-download__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 5px;
  color: var(--jiliaa-primary);
}

.page-download__step-description {
  font-size: 1rem;
  color: var(--jiliaa-text-main);
  flex-grow: 1;
}

.page-download__download-visuals {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-download__download-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-download__qr-code {
  width: 100%;
  height: auto;
  max-width: 250px;
  border: 5px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__download-button {
  margin-top: 20px;
  width: fit-content;
  padding-left: 40px;
  padding-right: 40px;
}

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

.page-download__requirements-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--jiliaa-primary);
}

.page-download__requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-download__requirements-item {
  font-size: 1rem;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--jiliaa-text-main);
}

.page-download__requirements-item::before {
  content: '✓';
  color: var(--jiliaa-secondary);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.page-download__compatibility-note {
  font-size: 1rem;
  margin-top: 40px;
  color: var(--jiliaa-text-main);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__security-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--jiliaa-primary);
}

.page-download__security-text {
  font-size: 1rem;
  color: var(--jiliaa-text-main);
}

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

.page-download__game-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-download__game-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--jiliaa-primary);
}

.page-download__game-text {
  font-size: 1rem;
  color: var(--jiliaa-text-main);
}

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

.page-download__faq-item {
  background-color: var(--jiliaa-card-bg);
  border: 1px solid var(--jiliaa-border);
  border-radius: 8px;
  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;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--jiliaa-primary);
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-download__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--jiliaa-secondary);
}

.page-download__faq-item.active .page-download__faq-question {
  background-color: rgba(242, 193, 78, 0.15);
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(45deg);
  color: var(--jiliaa-primary);
}

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

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

.page-download__faq-a-text {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* CTA Section */
.page-download__cta-subtext {
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 30px;
  color: var(--jiliaa-text-main);
}

.page-download__cta-button {
  margin-bottom: 15px;
  min-width: 280px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-download__download-steps-grid,
  .page-download__download-steps-grid--reverse {
    grid-template-columns: 1fr;
  }

  .page-download__download-steps-grid--reverse .page-download__download-visuals {
    order: -1; /* Move visuals to top on smaller screens */
  }

  .page-download__download-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__system-requirements-section,
  .page-download__security-section,
  .page-download__games-section,
  .page-download__faq-section,
  .page-download__cta-section {
    padding: 40px 0;
  }

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

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

  .page-download__hero-description,
  .page-download__section-description,
  .page-download__compatibility-note,
  .page-download__cta-subtext {
    font-size: 1rem;
  }

  .page-download__section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

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

  /* Image Responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__hero-image-wrapper,
  .page-download__download-visuals,
  .page-download__qr-code {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button Responsiveness */
  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download__download-button,
  .page-download__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-download__hero-content .page-download__btn-primary {
    margin-left: auto;
    margin-right: auto;
  }

  .page-download__download-steps-text .page-download__download-button {
    margin-left: auto;
    margin-right: auto;
  }

  .page-download__cta-section .page-download__btn-primary,
  .page-download__cta-section .page-download__btn-secondary {
    margin-left: auto;
    margin-right: auto;
  }

  .page-download__features-grid,
  .page-download__requirements-grid,
  .page-download__security-features-grid,
  .page-download__games-grid {
    gap: 20px;
  }

  .page-download__step-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .page-download__step-number {
    margin-bottom: 10px;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

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

  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download__download-button,
  .page-download__cta-button {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .page-download__feature-title,
  .page-download__requirements-title,
  .page-download__security-title,
  .page-download__game-title {
    font-size: 1.2rem;
  }

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

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