/* =========================================
   PAW·SPECTIVES — components.css
   Overlay effects, hero fade, details
   ========================================= */

/* ── HERO QUOTE FADE ── */
#hero-quote,
#hero-chapter {
  transition: opacity 0.45s ease;
}

#hero-quote.is-fading,
#hero-chapter.is-fading {
  opacity: 0;
}

/* ── PREVIEW CARD OVERLAY ── */
.preview-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.82);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.preview-card:hover .preview-card__overlay {
  opacity: 1;
}

.preview-card__overlay-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: #F8F8F6;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.preview-card__overlay-chapter {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C8861E;
}

/* ── BOOK COVER BADGE ── */
.cover-badge {
  position: absolute;
  bottom: 1rem;
  right: -0.5rem;
  width: 76px;
  height: 76px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.3;
  box-shadow: 0 4px 16px rgba(200, 134, 30, 0.35);
  z-index: 2;
  transform: rotate(8deg);
}

/* ── MARQUEE SECOND ROW ── */
.marquee-section--two-rows {
  padding: 3.5rem 0;
}

.marquee-section--two-rows .marquee-track {
  margin-bottom: 0.8rem;
}

/* ── BUY SECTION GIFT NOTE ── */
.gift-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(200, 134, 30, 0.35);
  font-family: var(--sans);
  font-size: 0.75rem;
  color: rgba(248, 248, 246, 0.6);
  letter-spacing: 0.06em;
}

.gift-note svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
}

/* ── CHAPTER HOVER PULL QUOTE ── */
.chapter-item {
  cursor: default;
}

.chapter-item__quote {
  display: none;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--mid);
  margin-top: 0.2rem;
  line-height: 1.5;
}

@media (hover: hover) {
  .chapter-item__name-wrap {
    display: flex;
    flex-direction: column;
  }
  .chapter-item__quote {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out), opacity 0.3s;
    opacity: 0;
  }
  .chapter-item:hover .chapter-item__quote {
    max-height: 3rem;
    opacity: 1;
  }
}

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 199;
  width: 0%;
  transition: width 0.1s linear;
}
