/* ============================================================
   /changelog — Vertikale Timeline mit beim Scroll mitwachsender
   Lila-Linie, eingefärbten Tag-Pills und pulsierendem Latest-Dot.
   Komplett gescoped unter body.changelog-page.
   ============================================================ */

.changelog-page {
  --cl-bg-void:        #06060b;
  --cl-bg-card:        rgba(255,255,255,0.03);
  --cl-bg-card-strong: rgba(255,255,255,0.05);
  --cl-border-subtle:  rgba(255,255,255,0.08);
  --cl-text:           #fff;
  --cl-text-muted:     rgba(255,255,255,0.62);
  --cl-text-dim:       rgba(255,255,255,0.42);

  --cl-feature:     #A855F7;
  --cl-fix:         #10B981;
  --cl-improvement: #3B82F6;
  --cl-breaking:    #EF4444;
  --cl-docs:        #6B7280;

  --cl-gradient: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #EC4899 100%);

  --cl-progress: 0%;

  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cl-bg-void);
  color: var(--cl-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
.changelog-page *, .changelog-page *::before, .changelog-page *::after { box-sizing: border-box; }
.changelog-page a { color: #c084fc; text-decoration: none; transition: color .2s ease; }
.changelog-page a:hover { color: #ec4899; }
.changelog-page code {
  font-family: 'JetBrains Mono', monospace;
  font-size: .85em;
  padding: 1px 6px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.18);
  border-radius: 5px;
  color: #c4b5fd;
}

/* ---- Cosmic Background ---- */
.changelog-bg {
  position: fixed; inset: 0; z-index: -10;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 25% 18%, rgba(124,58,237,.14) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 80% 88%, rgba(236,72,153,.10) 0%, transparent 70%),
    linear-gradient(180deg, #06060b 0%, #0d081a 50%, #06060b 100%);
}
.changelog-stars { position: fixed; inset: 0; z-index: -8; pointer-events: none; opacity: 0.3; }
.cl-star {
  position: absolute; width: 2px; height: 2px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 0 4px rgba(255,255,255,0.6);
  animation: cl-twinkle 4s ease-in-out infinite;
}
@keyframes cl-twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.3); }
}

/* ---- Header (eigene Page-Nav) ---- */
.cl-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cl-header .logo svg { width: 180px; height: 50px; display: block; }
.cl-header nav {
  display: flex; gap: 22px; margin-left: auto;
  flex-wrap: wrap; align-items: center;
}
.cl-header nav a {
  color: rgba(255,255,255,0.62);
  font-size: 14px; font-weight: 500;
}
.cl-header nav a:hover { color: #fff; }

/* ---- Container & Hero ---- */
.cl-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}
.cl-hero { padding: 56px 0 28px; }
.cl-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cl-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #c4b5fd;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cl-hero h1 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(36px, 5.4vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.cl-hero h1 .accent {
  background: var(--cl-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cl-hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--cl-text-muted);
  max-width: 600px;
  margin: 0 0 16px;
  line-height: 1.55;
}
.cl-hero-meta {
  font-size: 13px;
  color: var(--cl-text-dim);
  letter-spacing: 0.02em;
}
.cl-hero-meta strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.cl-current-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #c4b5fd;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.35);
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.cl-rss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--cl-border-subtle);
  border-radius: 10px;
  color: var(--cl-text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
  flex-shrink: 0;
}
.cl-rss:hover {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.45);
  color: #fff;
}
.cl-rss svg { width: 14px; height: 14px; }

/* ============ Timeline ============ */
.cl-list {
  position: relative;
  padding: 24px 0 80px 56px;
}
.cl-list::before {
  /* Hintergrund-Linie (volle Hoehe, dezent) */
  content: '';
  position: absolute;
  top: 16px; bottom: 24px;
  left: 22px;
  width: 2px;
  background: rgba(168,85,247,0.12);
  border-radius: 999px;
}
.cl-list::after {
  /* Fortschritts-Linie (laeuft mit Scroll mit, --cl-progress) */
  content: '';
  position: absolute;
  top: 16px;
  left: 22px;
  width: 2px;
  height: var(--cl-progress, 0%);
  background: linear-gradient(180deg,
    rgba(168,85,247,0.85) 0%,
    rgba(236,72,153,0.6) 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(168,85,247,0.4);
  transition: height .15s linear;
  pointer-events: none;
}

.cl-entry {
  position: relative;
  padding-bottom: 32px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,1,.36,1);
}
.cl-entry.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.cl-entry:last-child { padding-bottom: 0; }

.cl-dot {
  position: absolute;
  left: -42px;
  top: 18px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cl-bg-void);
  border: 2px solid rgba(168,85,247,0.55);
  box-shadow: 0 0 0 4px rgba(168,85,247,0.08);
  z-index: 2;
}
.cl-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(168,85,247,0.55);
}
/* Latest entry: bigger + pulsing */
.cl-entry.is-latest .cl-dot {
  width: 22px; height: 22px;
  top: 16px;
  left: -44px;
  border-color: var(--cl-feature);
  box-shadow: 0 0 0 5px rgba(168,85,247,0.18), 0 0 18px rgba(168,85,247,0.55);
}
.cl-entry.is-latest .cl-dot::after { background: var(--cl-feature); }
.cl-entry.is-latest .cl-dot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(168,85,247,0.4);
  z-index: -1;
  animation: cl-latest-pulse 2.2s ease-in-out infinite;
}
@keyframes cl-latest-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.55; }
  50%      { transform: scale(1.7); opacity: 0; }
}

/* ---- Card pro Eintrag ---- */
.cl-card {
  position: relative;
  padding: 22px 24px 20px;
  background: var(--cl-bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--cl-border-subtle);
  border-radius: 14px;
  transition: transform .25s cubic-bezier(.22,1,.36,1),
              border-color .25s ease,
              box-shadow .25s ease;
}
.cl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 16px 32px -16px rgba(124,58,237,0.5);
}
.cl-entry.is-latest .cl-card { background: var(--cl-bg-card-strong); border-color: rgba(168,85,247,0.22); }

.cl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cl-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(168,85,247,0.14);
  border: 1px solid rgba(168,85,247,0.4);
  padding: 4px 12px;
  border-radius: 8px;
}
.cl-entry.is-latest .cl-version {
  background: var(--cl-gradient);
  border-color: transparent;
}
.cl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--cl-text-dim);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.cl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.cl-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cl-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.cl-tag-feature     { color: var(--cl-feature);     background: rgba(168,85,247,0.14); border: 1px solid rgba(168,85,247,0.4); }
.cl-tag-fix         { color: var(--cl-fix);         background: rgba(16,185,129,0.14); border: 1px solid rgba(16,185,129,0.4); }
.cl-tag-improvement { color: var(--cl-improvement); background: rgba(59,130,246,0.14); border: 1px solid rgba(59,130,246,0.4); }
.cl-tag-breaking    { color: var(--cl-breaking);    background: rgba(239,68,68,0.14);  border: 1px solid rgba(239,68,68,0.4); }
.cl-tag-docs        { color: var(--cl-docs);        background: rgba(107,114,128,0.14);border: 1px solid rgba(107,114,128,0.4); }

.cl-title {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 14px;
}
.cl-changes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cl-changes li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--cl-text-muted);
  line-height: 1.55;
}
.cl-changes li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 1px;
  background: rgba(168,85,247,0.6);
}

/* ---- Mobile Stacking ---- */
@media (max-width: 720px) {
  .cl-container { padding: 0 18px; }
  .cl-list { padding: 18px 0 60px 36px; }
  .cl-list::before, .cl-list::after { left: 14px; }
  .cl-dot { left: -32px; }
  .cl-entry.is-latest .cl-dot { left: -34px; }
  .cl-hero { padding: 40px 0 22px; }
  .cl-hero-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cl-rss { align-self: flex-start; }
  .cl-card { padding: 18px 18px 16px; }
}
@media (max-width: 480px) {
  .cl-title { font-size: 17px; }
  .cl-changes li { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .cl-entry.is-latest .cl-dot::before,
  .cl-star { animation: none !important; }
  .cl-entry { opacity: 1; transform: none; transition: none; }
  .cl-list::after { transition: none; }
}
