/* style/promotions.css */

:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

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

.page-promotions a {
  color: var(--color-secondary);
  text-decoration: none;
}

.page-promotions a:hover {
  text-decoration: underline;
}

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

.page-promotions__container--center {
  text-align: center;
}

.page-promotions__section {
  padding: 60px 0;
}

.page-promotions__dark-section {
  background-color: var(--color-deep-green);
  color: var(--color-text-main);
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  margin-top: -100px; /* Pull content slightly over the image */
  background-color: rgba(8, 22, 15, 0.85); /* Semi-transparent background for readability */
  padding: 40px 20px;
  border-radius: 10px;
  max-width: 900px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: var(--color-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background: var(--color-button-gradient);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-main);
  transform: translateY(-3px);
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 6px;
  background: var(--color-button-gradient);
  color: var(--color-text-main);
  border: none;
  margin-top: 15px;
}

.page-promotions__btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(42, 209, 111, 0.4);
}

/* Promotions Grid */
.page-promotions__promotions-grid,
.page-promotions__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-promotions__promotion-card,
.page-promotions__game-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-promotions__promotion-card:hover,
.page-promotions__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-promotions__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: var(--color-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__card-title a {
  color: var(--color-gold);
}

.page-promotions__card-title a:hover {
  color: var(--color-glow);
}

.page-promotions__card-text {
  color: var(--color-text-secondary);
  font-size: 0.95em;
  line-height: 1.5;
  flex-grow: 1;
}

/* How to Claim */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-promotions__step-item {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 1.3em;
  color: var(--color-gold);
  margin-bottom: 15px;
}

/* Types of Promotions */
.page-promotions__types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-promotions__type-item {
  background-color: var(--color-card-bg);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--color-gold);
  cursor: pointer;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-question:hover {
  background-color: var(--color-primary);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-gold);
}

.page-promotions__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--color-text-secondary);
  line-height: 1.6;
  background-color: var(--color-card-bg);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid var(--color-primary);
}

/* Bottom CTA */
.page-promotions__cta-bottom {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-promotions__cta-bottom .page-promotions__section-title {
  color: var(--color-gold);
}

.page-promotions__cta-bottom .page-promotions__cta-buttons {
  margin-top: 40px;
}

/* General Image styles for responsiveness */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Ensure no CSS filters are applied to change image colors */
  filter: none; /* Explicitly reset any potential filter */
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

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

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

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

  .page-promotions__promotions-grid,
  .page-promotions__games-grid,
  .page-promotions__steps-grid,
  .page-promotions__types-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__card-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  /* 1. HERO 主图区域 */
  .page-promotions__hero-section {
    padding-top: 10px !important; /* Fixed small top padding */
    padding-bottom: 40px;
  }

  .page-promotions__hero-image-wrapper {
    max-height: 300px;
  }

  .page-promotions__hero-content {
    margin-top: -60px; /* Adjust overlap */
    padding: 25px 15px;
    border-radius: 8px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em) !important; /* Ensure H1 font size is not too large */
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* 2. 产品展示图区域 & 通用图片与容器 */
  .page-promotions__promotions-grid,
  .page-promotions__games-grid {
    grid-template-columns: 1fr !important; /* Single column layout */
    gap: 20px;
  }

  .page-promotions__promotion-card,
  .page-promotions__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__card-image {
    height: 160px;
  }

  /* 3. 通用图片与容器 */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-promotions__section,
  .page-promotions__container,
  .page-promotions__card,
  .page-promotions__promotion-card,
  .page-promotions__game-card,
  .page-promotions__step-item,
  .page-promotions__type-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 4. 按钮与按钮容器 */
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-small,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow text wrapping */
    word-wrap: break-word !important; /* Allow word breaking */
    padding: 12px 20px;
    font-size: 1em;
  }

  /* 5. 其他内容模块 */
  .page-promotions__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }

  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .page-promotions__step-item,
  .page-promotions__type-item {
    padding: 20px;
  }

  .page-promotions__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-promotions__faq-answer {
    padding: 15px;
    font-size: 0.9em;
  }

  .page-promotions__cta-bottom {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}