/* style/game-download-ios.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-bg-color: #121212;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-border-dark: rgba(255, 255, 255, 0.05);
  --button-hover-dark: #0056b3;
  --button-secondary-hover-dark: #e0a800;
}

.page-game-download-ios {
  font-family: 'Arial', sans-serif;
  color: var(--light-text-color); /* Body background is dark, so text is light */
  line-height: 1.6;
  background-color: var(--dark-bg-color);
}

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

.page-game-download-ios__main-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--light-text-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-download-ios__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-game-download-ios__description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-game-download-ios__description a:hover {
  text-decoration: underline;
}

.page-game-download-ios__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--light-text-color);
  text-align: center;
  margin-bottom: 15px;
}

.page-game-download-ios__highlight {
  color: var(--secondary-color);
}

.page-game-download-ios__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #cccccc;
}

.page-game-download-ios__section-subtitle a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-game-download-ios__section-subtitle a:hover {
  text-decoration: underline;
}

.page-game-download-ios__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-game-download-ios__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: nowrap;
}

.page-game-download-ios__btn-primary {
  background: var(--primary-color);
  color: var(--light-text-color);
  border: 2px solid var(--primary-color);
}

.page-game-download-ios__btn-primary:hover {
  background: var(--button-hover-dark);
  border-color: var(--button-hover-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-game-download-ios__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-game-download-ios__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--dark-text-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-game-download-ios__btn-small {
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 6px;
}

/* Intro Section */
.page-game-download-ios__intro-section {
  padding-top: 120px; /* Adjust for fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
}

/* Benefits Section */
.page-game-download-ios__benefits-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-game-download-ios__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.page-game-download-ios__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-download-ios__benefit-icon {
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-download-ios__benefit-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-game-download-ios__benefit-description {
  font-size: 16px;
  color: #e0e0e0;
}

/* Download Guide Section */
.page-game-download-ios__download-guide-section {
  padding: 80px 0;
  background-color: var(--dark-bg-color);
}

.page-game-download-ios__guide-step {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 60px;
  background: var(--card-bg-dark);
  border: 1px solid var(--card-border-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-download-ios__step-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
}

.page-game-download-ios__step-content {
  flex-grow: 1;
}

.page-game-download-ios__step-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--light-text-color);
  margin-bottom: 15px;
}

.page-game-download-ios__step-content p {
  font-size: 17px;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-game-download-ios__step-content ol {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-game-download-ios__step-content ol li {
  margin-bottom: 8px;
  font-size: 17px;
}

.page-game-download-ios__step-content strong {
  color: var(--secondary-color);
}

.page-game-download-ios__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Promotions Section */
.page-game-download-ios__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-game-download-ios__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-download-ios__promo-card {
  background: var(--card-bg-dark);
  border: 1px solid var(--card-border-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-download-ios__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-download-ios__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-game-download-ios__promo-description {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-game-download-ios__promo-description strong {
  color: var(--secondary-color);
}

/* Security Section */
.page-game-download-ios__security-section {
  padding: 80px 0;
  background-color: var(--dark-bg-color);
}

.page-game-download-ios__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.page-game-download-ios__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-download-ios__security-icon {
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-download-ios__security-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-game-download-ios__security-description {
  font-size: 16px;
  color: #e0e0e0;
}

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

.page-game-download-ios__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-game-download-ios__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--card-bg-dark);
  border: 1px solid var(--card-border-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-game-download-ios__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #e0e0e0;
  font-size: 16px;
}

.page-game-download-ios__faq-item.active .page-game-download-ios__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #1e1e1e;
  border-radius: 0 0 5px 5px;
}

.page-game-download-ios__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-dark);
  border: none; /* Border is on item */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-game-download-ios__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-game-download-ios__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-game-download-ios__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--light-text-color);
}

.page-game-download-ios__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-game-download-ios__faq-item.active .page-game-download-ios__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Call to Action Section */
.page-game-download-ios__call-to-action-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0056b3, #007bff);
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-game-download-ios__main-title {
    font-size: 36px;
  }
  .page-game-download-ios__section-title {
    font-size: 30px;
  }
  .page-game-download-ios__benefits-grid, .page-game-download-ios__promo-grid, .page-game-download-ios__security-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-game-download-ios__guide-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-game-download-ios__step-number {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-game-download-ios__intro-section {
    padding-top: 100px !important; /* Mobile fixed header */
    padding-bottom: 40px;
  }
  .page-game-download-ios__main-title {
    font-size: 28px;
  }
  .page-game-download-ios__description {
    font-size: 16px;
  }
  .page-game-download-ios__section-title {
    font-size: 24px;
  }
  .page-game-download-ios__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-game-download-ios__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-download-ios__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-game-download-ios__benefits-section, .page-game-download-ios__download-guide-section, .page-game-download-ios__promotions-section, .page-game-download-ios__security-section, .page-game-download-ios__faq-section, .page-game-download-ios__call-to-action-section {
    padding: 40px 0;
  }
  .page-game-download-ios__container {
    padding: 0 15px;
  }
  .page-game-download-ios__benefit-card, .page-game-download-ios__promo-card, .page-game-download-ios__security-item {
    padding: 20px;
  }
  .page-game-download-ios__benefit-title, .page-game-download-ios__promo-title, .page-game-download-ios__security-title {
    font-size: 20px;
  }
  .page-game-download-ios__benefit-description, .page-game-download-ios__promo-description, .page-game-download-ios__security-description {
    font-size: 15px;
  }
  .page-game-download-ios__guide-step {
    padding: 20px;
    gap: 15px;
  }
  .page-game-download-ios__step-number {
    font-size: 40px;
    width: 60px;
    height: 60px;
  }
  .page-game-download-ios__step-title {
    font-size: 22px;
  }
  .page-game-download-ios__step-content p, .page-game-download-ios__step-content ol li {
    font-size: 15px;
  }
  .page-game-download-ios__faq-question {
    padding: 15px;
  }
  .page-game-download-ios__faq-question h3 {
    font-size: 16px;
  }
  .page-game-download-ios__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-game-download-ios__faq-item.active .page-game-download-ios__faq-answer {
    padding: 15px !important;
  }

  /* Force images to fit */
  .page-game-download-ios img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-download-ios__container, .page-game-download-ios__benefits-section, .page-game-download-ios__download-guide-section, .page-game-download-ios__promotions-section, .page-game-download-ios__security-section, .page-game-download-ios__faq-section, .page-game-download-ios__call-to-action-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}