/* ============================================================
 * K-MUDANG Blog FX styles
 * Light theme, additive (no existing rules overridden).
 * ============================================================ */

/* ---------- 1. Reading progress bar ---------- */
#blog-fx-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #B8902A, #c8382e);
  z-index: 9998;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* (TOC styles removed per user feedback) */

/* ---------- 3. Day-master card accent (index) ---------- */
.blog-fx-card-accent {
  position: relative;
  border-left: 3px solid var(--blog-fx-accent, transparent) !important;
}

.blog-fx-el-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Ma Shan Zheng', 'Noto Serif KR', serif;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 3;
  letter-spacing: 0;
  pointer-events: none;
  opacity: 0.92;
}

/* Post hero subtle tint */
.post-hero.blog-fx-hero-tint::before,
.hero-section.blog-fx-hero-tint::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blog-fx-day-color, transparent) 0%, transparent 50%);
  opacity: 0.08;
  pointer-events: none;
  border-radius: inherit;
}

.post-hero.blog-fx-hero-tint,
.hero-section.blog-fx-hero-tint {
  position: relative;
}

/* ---------- 4. Today's Resonant Celebrity Spotlight ---------- */
#blog-fx-spotlight {
  margin: 24px auto 36px;
  max-width: 380px;
  padding: 0 16px;
}

.blog-fx-spot-link {
  display: block;
  background: rgba(245, 240, 232, 0.9);
  border: 1.5px solid var(--blog-fx-spot-color, rgba(184, 144, 42, 0.4));
  border-radius: 16px;
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 18px rgba(58, 45, 30, 0.08);
}

.blog-fx-spot-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(58, 45, 30, 0.14);
}

/* Eyebrow strip on top */
.blog-fx-spot-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(90deg,
    transparent,
    rgba(184, 144, 42, 0.06),
    transparent);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--blog-fx-spot-color, #B8902A);
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(184, 144, 42, 0.15);
}

.blog-fx-spot-eyebrow-icon {
  font-size: 13px;
}

.blog-fx-spot-eyebrow-divider {
  opacity: 0.4;
  margin: 0 2px;
}

.blog-fx-spot-day {
  font-family: 'Ma Shan Zheng', 'Noto Serif KR', serif;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--blog-fx-spot-color, #B8902A);
}

/* Image — full width, 3:4 aspect */
.blog-fx-spot-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #ddd;
  overflow: hidden;
}

.blog-fx-spot-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.blog-fx-spot-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blog-fx-spot-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Ma Shan Zheng', serif;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* Body */
.blog-fx-spot-body {
  padding: 16px 18px 18px;
  text-align: center;
}

.blog-fx-spot-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #2C2C2C;
  line-height: 1.3;
  font-family: 'Noto Serif KR', serif;
}

.blog-fx-spot-pillar {
  font-family: 'Ma Shan Zheng', 'Noto Serif KR', serif;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.blog-fx-spot-pillar .blog-fx-spot-sub {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  color: #7a7265;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 2px;
}

.blog-fx-spot-sub {
  font-size: 0.82rem;
  margin: 0 0 10px;
  color: #7a7265;
}

.blog-fx-spot-reason {
  font-size: 0.78rem;
  color: #5a5247;
  line-height: 1.6;
  margin: 8px 0 12px;
  letter-spacing: 0.2px;
  font-style: italic;
}

.blog-fx-spot-cta {
  display: inline-block;
  font-size: 0.85rem;
  color: #fff;
  background: var(--blog-fx-spot-color, #B8902A);
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 8px 18px;
  border-radius: 22px;
  margin-top: 4px;
  transition: transform 0.18s;
}

.blog-fx-spot-link:hover .blog-fx-spot-cta {
  transform: scale(1.04);
}

/* Mobile: same vertical card, slightly tighter */
@media (max-width: 480px) {
  #blog-fx-spotlight {
    padding: 0 12px;
  }
  .blog-fx-spot-eyebrow {
    padding: 8px 12px;
    font-size: 10px;
    letter-spacing: 1.5px;
  }
  .blog-fx-spot-day {
    font-size: 14px;
  }
  .blog-fx-spot-badge {
    width: 32px;
    height: 32px;
    font-size: 18px;
    top: 10px;
    right: 10px;
  }
  .blog-fx-spot-body {
    padding: 14px 14px 16px;
  }
  .blog-fx-spot-title {
    font-size: 1.1rem;
  }
  .blog-fx-spot-pillar {
    font-size: 16px;
  }
  .blog-fx-spot-reason {
    font-size: 0.75rem;
  }
}

/* ---------- 5. Bujeok modal: CTA ---------- */
.blog-fx-bujeok-cta {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #B8902A, #c8a84b);
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 24px;
  border-radius: 26px;
  font-family: 'Noto Serif KR', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(184, 144, 42, 0.5);
  transition: all 0.22s;
  z-index: 11;
  white-space: nowrap;
}

.blog-fx-bujeok-cta:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 144, 42, 0.7);
}

@media (max-width: 480px) {
  .blog-fx-bujeok-cta {
    bottom: 16px;
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #blog-fx-progress,
  .blog-fx-spot-link,
  .blog-fx-bujeok-cta {
    transition: none !important;
    animation: none !important;
  }
}
