/* style/mobile-app.css */

/* Base Styles for Mobile App Page */
.page-mobile-app {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-mobile-app__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-mobile-app__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-mobile-app__hero-section {
  display: flex;
  align-items: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
}

.page-mobile-app__hero-section .page-mobile-app__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-mobile-app__hero-content {
  max-width: 700px;
}

.page-mobile-app__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-mobile-app__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-mobile-app__btn-primary,
.page-mobile-app__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-mobile-app__btn-primary:hover {
  background-color: #d16b05;
  border-color: #d16b05;
}

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

.page-mobile-app__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bbd;
  border-color: #f0f0f0;
}

.page-mobile-app__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
}

.page-mobile-app__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Why Download Section */
.page-mobile-app__why-download-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for this section */
  color: #333333; /* Dark text for light background */
}

.page-mobile-app__why-download-section .page-mobile-app__section-title,
.page-mobile-app__why-download-section .page-mobile-app__section-description {
  color: #333333;
}

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

.page-mobile-app__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-mobile-app__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-mobile-app__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-mobile-app__feature-text {
  font-size: 1em;
  color: #555555;
}

/* Game Variety Section */
.page-mobile-app__game-variety-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

.page-mobile-app__game-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-mobile-app__game-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-mobile-app__game-item a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-mobile-app__game-item a:hover {
  text-decoration: underline;
}

/* Download Guide Section */
.page-mobile-app__download-guide-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-mobile-app__download-guide-section .page-mobile-app__section-title,
.page-mobile-app__download-guide-section .page-mobile-app__section-description {
  color: #333333;
}

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

.page-mobile-app__step-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-mobile-app__step-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-mobile-app__step-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-mobile-app__step-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-mobile-app__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

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

.page-mobile-app__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-mobile-app__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-mobile-app__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  font-weight: bold;
}

.page-mobile-app__faq-toggle {
  font-size: 1.8em;
  color: #26A9E0;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-mobile-app__faq-item.active .page-mobile-app__faq-toggle {
  transform: rotate(45deg);
}

.page-mobile-app__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-mobile-app__faq-item.active .page-mobile-app__faq-answer {
  max-height: 1000px !important; /* Ensure content is fully visible */
  padding: 20px;
}

.page-mobile-app__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Color Contrast Adjustments for dark/light backgrounds */
.page-mobile-app__dark-bg {
  color: #ffffff;
}

.page-mobile-app__light-bg {
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-mobile-app__hero-title {
    font-size: 3em;
  }

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

@media (max-width: 768px) {
  .page-mobile-app {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-mobile-app__hero-section .page-mobile-app__container {
    flex-direction: column;
  }

  .page-mobile-app__hero-title {
    font-size: 2.5em;
  }

  .page-mobile-app__hero-description {
    font-size: 1.1em;
  }

  .page-mobile-app__section-title {
    font-size: 1.8em;
  }

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

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

  .page-mobile-app__btn-primary,
  .page-mobile-app__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-mobile-app__features-grid,
  .page-mobile-app__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-mobile-app img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }

  .page-mobile-app__hero-image-wrapper,
  .page-mobile-app__feature-card,
  .page-mobile-app__step-item,
  .page-mobile-app__game-item,
  .page-mobile-app__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-mobile-app__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-mobile-app__why-download-section,
  .page-mobile-app__game-variety-section,
  .page-mobile-app__download-guide-section,
  .page-mobile-app__faq-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-mobile-app__faq-answer {
    padding: 15px !important;
  }

  .page-mobile-app__faq-question {
    padding: 15px;
  }
  
  .page-mobile-app__game-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .page-mobile-app__hero-title {
    font-size: 2em;
  }

  .page-mobile-app__section-title {
    font-size: 1.5em;
  }

  .page-mobile-app__btn-primary,
  .page-mobile-app__btn-secondary {
    font-size: 1em;
    padding: 10px 20px;
  }
}