/* ═══════════════════════════════════════════════════════════════════════════
   NEXT POST — scroll-driven navigation to the next article

   No pinning — the section scrolls naturally. Progress bar fills as
   the section passes through the viewport. Auto-navigates at 100%.
   ═══════════════════════════════════════════════════════════════════════════ */

.next-post-wrapper {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.next-post {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  overflow: hidden;
  background: var(--color-bg-inset);
}

/* ── Background image (blurred, dimmed) ────────────────────────────────── */

.next-post__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.next-post__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.25);
  transform: scale(1.05);
}

/* ── Content overlay ───────────────────────────────────────────────────── */

.next-post__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-12) var(--space-8);
  max-width: 50rem;
}

.next-post__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin-bottom: var(--space-6);
}

.next-post__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3.5rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg);
  margin-bottom: var(--space-8);
}

.next-post__link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--color-bg);
  background: var(--color-fg);
  padding: var(--space-3) var(--space-10);
  border-radius: var(--radius-full);
  text-decoration: none;
  margin-bottom: var(--space-12);
  transition: background var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-snappy);
}

.next-post__link:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: scale(1.03);
}

/* ── Progress ──────────────────────────────────────────────────────────── */

.next-post__progress {
  margin-bottom: var(--space-4);
}

.next-post__percent {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 5rem);
  font-weight: 700;
  color: var(--color-fg);
  opacity: 0.12;
  line-height: 1;
}

/* ── Progress bar ──────────────────────────────────────────────────────── */

.next-post__bar-track {
  width: 100%;
  max-width: 30rem;
  height: 3px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin: 0 auto;
  overflow: hidden;
}

.next-post__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}
