/* style/promo.css */

/* Root variables for colors based on the Black Gold theme */
:root {
  --niceph-primary: #F2C14E;
  --niceph-secondary: #FFD36B;
  --niceph-card-bg: #111111;
  --niceph-bg: #0A0A0A;
  --niceph-text-main: #FFF6D6;
  --niceph-border: #3A2A12;
  --niceph-glow: #FFD36B;
  --niceph-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-promo {
  background-color: var(--niceph-bg);
  color: var(--niceph-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* Fixed header padding handled by shared.css on body, so hero gets small top margin */
.page-promo__hero-section {
  position: relative;
  background: var(--niceph-bg);
  padding-top: 10px; /* Small additional padding for the hero section itself */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.page-promo__hero-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Max width for the content wrapper */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promo__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit hero image height */
  margin-bottom: 30px; /* Space between image and text */
}

.page-promo__hero-text-container {
  max-width: 900px;
  padding: 0 15px;
}

.page-promo__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--niceph-secondary);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-promo__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--niceph-text-main);
  margin-bottom: 30px;
}

.page-promo__cta-button {
  display: inline-block;
  background: var(--niceph-button-gradient);
  color: #ffffff; /* White text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-promo__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-promo__cta-button--center {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 300px;
}

.page-promo__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--niceph-primary);
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-promo__section-description {
  font-size: 1.1em;
  color: var(--niceph-text-main);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-promo__overview-section,
.page-promo__daily-rewards-section,
.page-promo__game-offers-section,
.page-promo__responsible-gaming-section,
.page-promo__final-cta-section {
  padding: 60px 0;
  background-color: var(--niceph-bg);
}

.page-promo__dark-section {
  background-color: var(--niceph-card-bg);
  padding: 60px 0;
}

.page-promo__features-grid,
.page-promo__bonus-cards-grid,
.page-promo__vip-benefits-grid,
.page-promo__game-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-promo__feature-card,
.page-promo__bonus-card,
.page-promo__vip-benefit-card,
.page-promo__game-type-card {
  background-color: var(--niceph-card-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promo__feature-card:hover,
.page-promo__bonus-card:hover,
.page-promo__vip-benefit-card:hover,
.page-promo__game-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.2);
}

.page-promo__feature-title,
.page-promo__card-title,
.page-promo__vip-benefit-card h3 {
  font-size: 1.6em;
  color: var(--niceph-secondary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promo__feature-text,
.page-promo__card-text,
.page-promo__vip-benefit-card p {
  font-size: 1em;
  color: var(--niceph-text-main);
}

.page-promo__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-promo__rewards-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}

.page-promo__reward-item {
  background-color: var(--niceph-card-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promo__reward-title {
  font-size: 1.5em;
  color: var(--niceph-primary);
  margin-bottom: 10px;
}

.page-promo__reward-text {
  font-size: 1em;
  color: var(--niceph-text-main);
}

.page-promo__game-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--niceph-secondary);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--niceph-secondary);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-promo__game-link:hover {
  color: var(--niceph-primary);
  border-color: var(--niceph-primary);
}

.page-promo__claim-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  counter-reset: step-counter;
}

.page-promo__step-item {
  background-color: var(--niceph-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promo__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--niceph-button-gradient);
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  flex-shrink: 0;
}

.page-promo__step-title {
  font-size: 1.5em;
  color: var(--niceph-primary);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promo__step-text {
  font-size: 1em;
  color: var(--niceph-text-main);
}

.page-promo__step-text a {
  color: var(--niceph-secondary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-promo__step-text a:hover {
  color: var(--niceph-primary);
}

.page-promo__faq-list {
  margin-top: 40px;
}

.page-promo__faq-item {
  background-color: var(--niceph-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--niceph-card-bg);
  transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
  background-color: rgba(255, 211, 107, 0.1);
}

.page-promo__faq-title {
  font-size: 1.3em;
  color: var(--niceph-primary);
  margin: 0;
  flex-grow: 1;
}

.page-promo__faq-toggle {
  font-size: 1.8em;
  color: var(--niceph-secondary);
  margin-left: 20px;
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--niceph-text-main);
  background-color: var(--niceph-bg);
}

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

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

.page-promo__faq-answer a {
  color: var(--niceph-secondary);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-promo__hero-image {
    max-height: 500px;
  }
}

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

  .page-promo__hero-section {
    padding-bottom: 40px;
  }

  .page-promo__hero-image {
    max-height: 400px;
    margin-bottom: 20px;
  }

  .page-promo__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-promo__hero-description {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
  }

  .page-promo__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }

  .page-promo__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promo__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-promo__cta-button--center {
    max-width: 90% !important;
  }

  .page-promo__features-grid,
  .page-promo__bonus-cards-grid,
  .page-promo__vip-benefits-grid,
  .page-promo__game-type-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promo__feature-card,
  .page-promo__bonus-card,
  .page-promo__vip-benefit-card,
  .page-promo__game-type-card,
  .page-promo__reward-item,
  .page-promo__step-item,
  .page-promo__faq-item {
    padding: 20px;
  }

  .page-promo__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-promo__overview-section,
  .page-promo__daily-rewards-section,
  .page-promo__game-offers-section,
  .page-promo__responsible-gaming-section,
  .page-promo__final-cta-section,
  .page-promo__dark-section {
    padding: 40px 0;
  }

  .page-promo__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO主图区域的padding-top必须在移动端媒体查询中重新设置 */
  .page-promo__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared media queries */
  }

  /* All images in content area */
  .page-promo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All containers with images/buttons */
  .page-promo__section,
  .page-promo__card,
  .page-promo__container,
  .page-promo__hero-content-wrapper,
  .page-promo__cta-buttons,
  .page-promo__button-group,
  .page-promo__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Multiple buttons arrangement */
  .page-promo__cta-buttons,
  .page-promo__button-group,
  .page-promo__btn-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-promo__hero-image {
    max-height: 300px;
  }

  .page-promo__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-promo__step-item::before {
    margin-bottom: 15px;
  }

  .page-promo__faq-question {
    padding: 15px 20px;
  }

  .page-promo__faq-title {
    font-size: 1.1em;
  }

  .page-promo__faq-toggle {
    font-size: 1.5em;
  }

  .page-promo__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}