/* style/promo.css */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --background-color: #0A0A0A;
  --card-background: #111111;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-promo {
  font-family: Arial, sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

.page-promo__section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Ensure the first section has minimal top padding, body handles header offset */
.page-promo__hero-section {
  padding-top: 10px;
  padding-bottom: 80px;
}

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

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

.page-promo__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--text-main-color);
}

.page-promo__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-promo__hero-description {
  font-size: 1.15rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

.page-promo__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
}

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

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

.page-promo__hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  padding: 20px;
  box-sizing: border-box;
}

.page-promo__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-promo__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-promo__text-block {
  font-size: 1.05rem;
  margin-bottom: 25px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ccc;
}

.page-promo__text-block a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-promo__card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
}

.page-promo__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

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

.page-promo__btn-primary,
.page-promo__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;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-promo__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-promo__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-promo__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--background-color);
  box-shadow: 0 0 15px var(--glow-color);
}

/* Feature Grid */
.page-promo__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-promo__feature-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-promo__feature-description {
  font-size: 1rem;
  color: #ccc;
}

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

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

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

.page-promo__promo-description {
  font-size: 0.95rem;
  color: #ccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Game Categories */
.page-promo__game-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.page-promo__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  min-width: 120px;
  text-decoration: none;
}

.page-promo__category-icon {
  width: 30px; /* Allowed small icon size */
  height: 30px; /* Allowed small icon size */
  margin-bottom: 10px;
  filter: brightness(1.2);
}

.page-promo__category-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main-color);
}

/* App Showcase */
.page-promo__app-showcase {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-promo__app-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.page-promo__app-details {
  flex: 1;
  min-width: 300px;
}

.page-promo__app-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-promo__app-description {
  font-size: 1.05rem;
  color: #ccc;
  margin-bottom: 30px;
}

/* Steps Grid */
.page-promo__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promo__step-item {
  padding: 30px;
}

.page-promo__step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--background-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-promo__step-title {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-promo__step-description {
  font-size: 0.95rem;
  color: #ccc;
}

/* FAQ Section */
.page-promo__faq-list {
  margin-top: 50px;
}

.page-promo__faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  padding: 0;
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main-color);
  background-color: #1a1a1a;
  border-bottom: 1px solid var(--border-color);
}

.page-promo__faq-question:hover {
  background-color: #222;
}

.page-promo__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1.15rem;
}

.page-promo__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

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

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #ccc;
}

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

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

.page-promo__final-cta {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promo__hero-section {
    min-height: 500px;
  }
  .page-promo__app-showcase {
    flex-direction: column;
    text-align: center;
  }
  .page-promo__app-details {
    min-width: unset;
  }
  .page-promo__app-image {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .page-promo__section {
    padding: 60px 0;
  }
  .page-promo__hero-section {
    padding-top: 10px !important; /* Body handles header offset */
    padding-bottom: 60px;
    min-height: 400px;
  }
  .page-promo__main-title {
    font-size: 2rem;
  }
  .page-promo__hero-description {
    font-size: 1rem;
  }
  .page-promo__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-promo__text-block {
    font-size: 0.95rem;
  }
  .page-promo__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-promo__btn-primary,
  .page-promo__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 1rem;
    padding: 12px 20px;
  }
  .page-promo__feature-grid, .page-promo__promo-grid, .page-promo__steps-grid {
    gap: 20px;
  }
  .page-promo__card {
    padding: 25px;
  }
  .page-promo__feature-title, .page-promo__promo-title, .page-promo__step-title {
    font-size: 1.2rem;
  }
  .page-promo__app-showcase {
    gap: 30px;
  }
  .page-promo__app-image {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  .page-promo__app-title {
    font-size: 1.6rem;
  }
  .page-promo__faq-question {
    padding: 18px 25px;
    font-size: 1.05rem;
  }
  .page-promo__faq-question h3 {
    font-size: 1.05rem;
  }
  .page-promo__faq-answer {
    padding: 0 25px;
  }
  .page-promo__faq-item.active .page-promo__faq-answer {
    padding: 15px 25px;
  }
  .page-promo__final-cta {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  /* Mobile image and container responsiveness */
  .page-promo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promo__section,
  .page-promo__card,
  .page-promo__container,
  .page-promo__cta-buttons,
  .page-promo__app-showcase,
  .page-promo__game-categories,
  .page-promo__feature-grid,
  .page-promo__promo-grid,
  .page-promo__steps-grid,
  .page-promo__faq-list,
  .page-promo__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific override for hero content padding, not width */
  .page-promo__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-promo__game-categories {
    gap: 10px;
  }
  .page-promo__category-card {
    min-width: 100px;
    padding: 15px 10px;
  }
}