/* style/download.css */
/* Body background: #0A0A0A (dark). Text Main: #FFF6D6 (light) */

.page-download {
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

.page-download__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-download__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 1.2rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 40px;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button */
  color: #111111; /* Dark text for light button */
  border: none;
}

.page-download__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-download__btn-secondary {
  background: transparent;
  color: #FFF6D6; /* Text Main */
  border: 2px solid #FFD36B; /* Glow */
}

.page-download__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1); /* Glow with slight transparency */
  transform: translateY(-2px);
}

.page-download__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E; /* Primary */
  text-align: center;
  margin-bottom: 30px;
}

.page-download__section-description {
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-download__dark-bg {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
  padding: 80px 0;
}

.page-download__why-download-section {
  padding: 80px 0;
}

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

.page-download__feature-card {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12; /* Border */
}

.page-download__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-download__feature-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Primary */
  margin-bottom: 15px;
}

.page-download__feature-text {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
}

.page-download__platforms-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
}

.page-download__platform-cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.page-download__platform-card {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12; /* Border */
  flex: 1;
  min-width: 300px;
  max-width: 45%;
}

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

.page-download__platform-title {
  font-size: 1.8rem;
  color: #F2C14E; /* Primary */
  margin-bottom: 15px;
}

.page-download__platform-text {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 25px;
}

.page-download__qr-code-wrapper {
  margin-bottom: 25px;
}

.page-download__qr-code {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border: 5px solid #FFD36B; /* Glow */
  border-radius: 8px;
}

.page-download__btn-full-width {
  width: 100%;
  display: block;
  margin-top: 20px;
}

.page-download__installation-section {
  padding: 80px 0;
}

.page-download__installation-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
  margin-bottom: 60px;
}

.page-download__step-item {
  text-align: center;
}

.page-download__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button */
  color: #111111;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.4);
}

.page-download__step-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Primary */
  margin-bottom: 10px;
}

.page-download__step-text {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
}

.page-download__installation-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 60px auto 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

.page-download__games-showcase-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
}

.page-download__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(167px, 1fr)); /* Fixed width for game cards */
  gap: 20px;
  margin-top: 50px;
  justify-content: center;
}

.page-download__game-card {
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #FFF6D6; /* Text Main */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3A2A12; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.page-download__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.3);
}

.page-download__game-thumbnail {
  width: 167px;
  height: 127px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.page-download__game-title {
  font-size: 1.1rem;
  color: #F2C14E; /* Primary */
  font-weight: 600;
}

.page-download__security-section {
  padding: 80px 0;
}

.page-download__security-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

.page-download__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-download__security-list li {
  background-color: #111111; /* Card BG */
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main */
  border-left: 5px solid #F2C14E; /* Primary */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__faq-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
}

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

.page-download__faq-item {
  background-color: #111111; /* Card BG */
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #3A2A12; /* Border */
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111; /* Card BG */
  transition: background-color 0.3s ease;
}

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

.page-download__faq-title {
  font-size: 1.2rem;
  color: #F2C14E; /* Primary */
  margin: 0;
}

.page-download__faq-toggle {
  font-size: 1.8rem;
  color: #FFD36B; /* Glow */
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(0deg); /* Explicitly reset if needed, JS handles text */
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
  background-color: #111111; /* Card BG */
}

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

.page-download__faq-answer p {
  margin: 0;
  font-size: 1rem;
}

.page-download__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

.page-download__cta-final-section .page-download__cta-buttons {
  margin-top: 50px;
  margin-bottom: 60px;
}

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

.page-download__final-cta-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-download__platform-card {
    max-width: 48%;
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-download__container {
    padding: 0 15px;
  }
  .page-download__hero-section {
    padding-bottom: 40px;
  }
  .page-download__hero-content {
    padding: 20px 15px;
  }
  .page-download__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-download__hero-description {
    font-size: 1rem;
  }
  .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__section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-download__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-download__dark-bg,
  .page-download__why-download-section,
  .page-download__platforms-section,
  .page-download__installation-section,
  .page-download__games-showcase-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    padding: 50px 0;
  }
  .page-download__feature-grid,
  .page-download__installation-steps,
  .page-download__security-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-download__platform-cards-wrapper {
    flex-direction: column;
    gap: 25px;
  }
  .page-download__platform-card {
    max-width: 100%;
    padding: 25px;
  }
  .page-download__qr-code {
    width: 150px;
    height: 150px;
  }
  .page-download__installation-image,
  .page-download__security-image,
  .page-download__final-cta-image {
    margin-top: 40px;
  }
  .page-download__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .page-download__game-thumbnail {
    width: 140px;
    height: 107px;
  }
  .page-download__faq-question {
    padding: 18px 20px;
  }
  .page-download__faq-title {
    font-size: 1.1rem;
  }
  .page-download__faq-answer {
    padding: 0 20px;
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px 20px 20px;
  }
  /* Mobile specific image and container rules */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__platforms-section,
  .page-download__installation-section,
  .page-download__games-showcase-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* No video section on this page, but if it were, it would need padding-top: 10px !important; */
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-download__btn-large {
    min-width: unset;
  }
  .page-download__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .page-download__game-thumbnail {
    width: 120px;
    height: 90px;
  }
  .page-download__platform-card {
    min-width: unset;
  }
}