/* ============================================
   SeasonPickr - Calendar & Holiday Pages
   节日专题页专用样式,仅在 .holiday-page 下生效
   调性:清单式 Top-N + 克制视觉差异化
   复用 custom.css 已有的 product-card / season-card / section-cta 等
   ============================================ */

/* ============================================
   1. Page wrapper & color tokens
   ============================================ */
:root {
  /* 节日强调色 — 与 brand/accent 解耦,只用于节日专题页 */
  --holiday-newyear:     #D08A60;
  --holiday-blue:        #6B8FB5;
  --holiday-valentines:  #B5485D;
  --holiday-superbowl:   #2E5C8A;
  --holiday-easter:      #A8C97F;
  --holiday-springbreak: #A8C97F;
  --holiday-memorial:    #2E5C8A;
  --holiday-mothers:     #C76944;
  --holiday-fathers:     #6B8FB5;
  --holiday-july4:       #2E5C8A;
  --holiday-primeday:    #C2542A;
  --holiday-dorm:        #E8A04E;
  --holiday-halloween:   #C46C3F;
  --holiday-thanks:      #9A4023;
  --holiday-black:       #2A1F18;
  --holiday-christmas:   #8B3145;
  --holiday-boxing:      #6B8FB5;
}

.holiday-page {
  --season-color: var(--brand-500);
}

.holiday-hero {
  --season-color: var(--brand-500);
}

/* ============================================
   2. Holiday Hero (extends .season-hero)
   ============================================ */
.holiday-hero {
  position: relative;
  text-align: center;
  padding: 80px 24px 64px;
  min-height: 320px;
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 24px 0 32px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--season-color) 0%, color-mix(in srgb, var(--season-color) 80%, #000) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.holiday-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.holiday-hero > * {
  position: relative;
  z-index: 1;
}

.holiday-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 18px;
  color: #fff;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
}

.holiday-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.95;
  margin: 0 0 20px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.holiday-hero .hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin: 0 auto 32px;
  opacity: 0.95;
  max-width: 560px;
  line-height: 1.5;
  font-weight: 400;
}

.holiday-hero .hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 4px;
}

.holiday-hero .hero-meta .meta-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

@media (max-width: 640px) {
  .holiday-hero { padding: 56px 20px 48px; }
}

/* ============================================
   3. Hero 变体 — 按节日切换渐变
   特异度 010 - 覆盖 .holiday-page 的 --season-color
   ============================================ */
.holiday-hero.holiday-hero--newyear     { --season-color: var(--holiday-newyear); }
.holiday-hero.holiday-hero--blue         { --season-color: var(--holiday-blue); }
.holiday-hero.holiday-hero--valentines  { --season-color: var(--holiday-valentines); }
.holiday-hero.holiday-hero--superbowl   { --season-color: var(--holiday-superbowl); }
.holiday-hero.holiday-hero--easter      { --season-color: var(--holiday-easter); }
.holiday-hero.holiday-hero--springbreak { --season-color: var(--holiday-springbreak); }
.holiday-hero.holiday-hero--memorial    { --season-color: var(--holiday-memorial); }
.holiday-hero.holiday-hero--mothers     { --season-color: var(--holiday-mothers); }
.holiday-hero.holiday-hero--fathers     { --season-color: var(--holiday-fathers); }
.holiday-hero.holiday-hero--july4       { --season-color: var(--holiday-july4); }
.holiday-hero.holiday-hero--primeday    { --season-color: var(--holiday-primeday); }
.holiday-hero.holiday-hero--dorm        { --season-color: var(--holiday-dorm); }
.holiday-hero.holiday-hero--halloween   { --season-color: var(--holiday-halloween); }
.holiday-hero.holiday-hero--thanks      { --season-color: var(--holiday-thanks); }
.holiday-hero.holiday-hero--black       { --season-color: var(--holiday-black); }
.holiday-hero.holiday-hero--christmas   { --season-color: var(--holiday-christmas); }
.holiday-hero.holiday-hero--boxing      { --season-color: var(--holiday-boxing); }

/* ============================================
   4. Top Picks (清单式 vertical stack)
   复用 .product-card.layout-horizontal
   ============================================ */
.holiday-top-picks {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}

.holiday-top-picks .product-card {
  margin: 0;
}

/* "我们为什么选它" 强调块 */
.pick-reason {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--cream-50);
  border-left: 3px solid var(--season-color, var(--brand-500));
  padding: 12px 16px;
  margin-top: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

[data-theme="dark"] .pick-reason {
  background: var(--surface-2);
}

.pick-reason-label {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--season-color, var(--brand-500));
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-top: 1px;
}

@media (max-width: 480px) {
  .pick-reason { flex-direction: column; gap: 6px; }
}

/* ============================================
   5. Quick Picks (3-col "Short on time?")
   ============================================ */
.holiday-quick-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.holiday-quick-pick {
  --qp-color: var(--season-color, var(--brand-500));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none !important;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.holiday-quick-pick::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--qp-color);
}

.holiday-quick-pick:hover {
  transform: translateY(-3px);
  border-color: var(--qp-color);
  box-shadow: var(--shadow-md);
  text-decoration: none !important;
}

.qp-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--qp-color);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-bottom: 10px;
}

.qp-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 6px;
}

.qp-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 10px;
  flex: 1;
}

.qp-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--qp-color);
  font-feature-settings: 'tnum' 1;
}

[data-theme="dark"] .qp-price {
  color: var(--link-hover, #E8B492);
}

.qp-price::before {
  content: "$";
  font-size: 0.8em;
  color: var(--text-muted);
  margin-right: 1px;
}

@media (max-width: 768px) {
  .holiday-quick-picks { grid-template-columns: 1fr; }
}

/* ============================================
   6. Shopping Tips
   ============================================ */
.holiday-tips {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
  counter-reset: tip;
}

.holiday-tips li {
  position: relative;
  padding: 16px 20px 16px 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  counter-increment: tip;
}

.holiday-tips li::before {
  content: counter(tip);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-200);
  color: var(--season-color, var(--brand-500));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50%;
}

[data-theme="dark"] .holiday-tips li::before {
  background: var(--surface-2);
}

.holiday-tips li strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* ============================================
   7. FAQ (native <details>)
   ============================================ */
.holiday-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.holiday-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.holiday-faq details[open] {
  border-color: var(--season-color, var(--brand-500));
}

.holiday-faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s ease;
}

.holiday-faq summary::-webkit-details-marker { display: none; }

.holiday-faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-200);
  color: var(--season-color, var(--brand-500));
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.15s ease;
}

.holiday-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--season-color, var(--brand-500));
  color: #fff;
}

[data-theme="dark"] .holiday-faq summary::after {
  background: var(--surface-2);
}

.holiday-faq .faq-body {
  padding: 4px 22px 20px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 16px;
}

/* ============================================
   8. Related Holidays (横向卡片)
   ============================================ */
.holiday-related {
  margin: 56px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.holiday-related h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 28px;
  font-weight: 600;
}

.holiday-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.holiday-related-card {
  --hr-color: var(--season-color, var(--brand-500));
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: left;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.holiday-related-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hr-color);
  transition: height 0.2s ease;
}

.holiday-related-card:hover {
  transform: translateY(-3px);
  border-color: var(--hr-color);
  box-shadow: var(--shadow-md);
  text-decoration: none !important;
}

.holiday-related-card:hover::before {
  height: 5px;
}

.hr-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
  line-height: 1;
}

.hr-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 4px;
}

.hr-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ============================================
   9. Editor's Note (intro paragraph)
   ============================================ */
.holiday-editor-note {
  max-width: var(--prose-max, 60ch);
  margin: 0 auto 32px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--text);
  padding: 0 0 0 20px;
  border-left: 3px solid var(--season-color, var(--brand-500));
}

.holiday-editor-note strong {
  color: var(--season-color, var(--brand-500));
  font-weight: 600;
}

[data-theme="dark"] .holiday-editor-note strong {
  color: var(--link-hover, #E8B492);
}

[data-theme="dark"] .pick-reason {
  color: var(--text);
}

/* ============================================
   10. Final CTA
   ============================================ */
.holiday-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--cream-100) 0%, var(--cream-200) 100%);
  padding: 56px 24px;
  border-radius: var(--radius-lg);
  margin: 48px 0 0;
}

[data-theme="dark"] .holiday-cta {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}

.holiday-cta h2 {
  font-size: 1.85rem;
  margin: 0 0 14px;
  font-weight: 600;
}

.holiday-cta p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--text-muted);
  line-height: 1.6;
}

.holiday-cta-btn {
  background: var(--season-color, var(--brand-500));
  border: 1px solid color-mix(in srgb, var(--season-color, var(--brand-500)) 60%, #000);
}

.holiday-cta-btn:hover {
  background: color-mix(in srgb, var(--season-color, var(--brand-500)) 80%, #000);
}

/* ============================================
   11. Mobile responsive tweaks
   ============================================ */
@media (max-width: 640px) {
  .holiday-top-picks { gap: 18px; }
  .holiday-related { margin-top: 40px; padding-top: 28px; }
  .holiday-related h2 { font-size: 1.4rem; }
  .holiday-related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .holiday-cta { padding: 40px 20px; }
  .holiday-cta h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .holiday-related-grid { grid-template-columns: 1fr; }
}

/* ============================================
   12. Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .holiday-hero,
  .holiday-quick-pick,
  .holiday-related-card,
  .holiday-faq summary::after,
  .product-card,
  .season-card {
    transition-duration: 0.01ms !important;
    transition-property: none !important;
  }
}
