/* ─────────────────────────────────────────
   CHANGELOG PAGE — PAGE-SPECIFIC STYLES
───────────────────────────────────────── */

/* ─────────────────────────────────────────
   PAGE HERO (COMPACT)
───────────────────────────────────────── */
.page-hero{position:relative;padding:160px 0 80px;text-align:center;overflow:hidden}
.page-hero::before{content:'';position:absolute;inset:0;background:
  radial-gradient(ellipse 60% 40% at 50% 30%,rgba(129,140,248,.1) 0%,transparent 60%),
  radial-gradient(ellipse 40% 30% at 70% 50%,rgba(255,255,255,.06) 0%,transparent 50%);
  pointer-events:none;z-index:0}
.page-hero__content{position:relative;z-index:1}
.page-hero .section-sub{margin:0 auto}

/* Changelog top zone — hero + filters share background */
.changelog-top{position:relative;background:
  linear-gradient(180deg,rgba(129,140,248,.1) 0%,rgba(255,255,255,.06) 70%,rgba(255,255,255,.04) 100%),
  radial-gradient(ellipse 80% 50% at 50% 20%,rgba(255,255,255,.09) 0%,transparent 60%),
  radial-gradient(ellipse 60% 40% at 30% 30%,rgba(255,255,255,.06) 0%,transparent 50%)}

/* ─────────────────────────────────────────
   SECTION SEPARATORS
───────────────────────────────────────── */
.section-sep{height:1px;background:linear-gradient(90deg,transparent 5%,rgba(255,255,255,.25) 30%,rgba(229,229,229,.15) 50%,rgba(255,255,255,.25) 70%,transparent 95%);margin:0 auto;max-width:960px;position:relative;overflow:visible}
.section-sep.reveal{transform:none;transition:opacity .8s cubic-bezier(.16,1,.3,1)}
.section-sep::before{content:'';position:absolute;left:10%;right:10%;top:-30px;bottom:-30px;background:radial-gradient(ellipse 100% 100% at 50% 50%,rgba(255,255,255,.06) 0%,transparent 60%);pointer-events:none;filter:blur(12px)}
.section-sep::after{content:'';display:block;width:80px;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.8),transparent);position:absolute;top:0;animation:line-travel 3s ease-in-out infinite}
@keyframes line-travel{0%{left:10%;transform:translateX(-50%);opacity:0}20%{opacity:1}80%{opacity:1}100%{left:90%;transform:translateX(-50%);opacity:0}}

/* ─────────────────────────────────────────
   FILTER BAR
───────────────────────────────────────── */
.filter-bar{padding:0 0 56px;position:relative;z-index:2}
.filter-bar__inner{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.filter-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 18px;border-radius:100px;border:1px solid var(--glass-border);background:var(--glass-bg);font-size:13px;font-weight:500;color:var(--muted);cursor:pointer;transition:all .25s cubic-bezier(.16,1,.3,1);user-select:none;font-family:'Inter',sans-serif}
.filter-pill:hover{border-color:rgba(255,255,255,.18);color:var(--text);background:var(--glass-bg-2)}
.filter-pill.active{color:var(--text);border-color:rgba(255,255,255,.5);background:var(--primary-dim);box-shadow:0 0 20px rgba(255,255,255,.15)}
.filter-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}
.filter-dot--feature{background:#34D399}
.filter-dot--improvement{background:rgba(255,255,255,.7)}
.filter-dot--fix{background:#FBBF24}
.filter-dot--breaking{background:#F87171}

/* ─────────────────────────────────────────
   CHANGELOG TIMELINE
───────────────────────────────────────── */
.changelog{padding:32px 0 80px;position:relative}
.changelog::before{content:'';position:absolute;inset:0;background-image:var(--noise-url);background-size:200px 200px;pointer-events:none;z-index:0;opacity:.06}

.timeline{position:relative;max-width:880px;margin:0 auto}

/* Vertical timeline line — static track */
.timeline::before{
  content:'';
  position:absolute;
  top:0;bottom:0;
  left:40px;
  width:2px;
  background:var(--glass-border);
  border-radius:2px;
  z-index:0;
}
/* Vertical timeline line — animated fill */
.timeline::after{
  content:'';
  position:absolute;
  top:0;
  left:40px;
  width:2px;
  height:0;
  background:linear-gradient(to bottom,var(--primary) 0%,var(--accent) 60%,rgba(229,229,229,.4) 100%);
  border-radius:2px;
  z-index:0;
  transition:height .15s linear;
  box-shadow:0 0 8px rgba(255,255,255,.3);
}

/* Timeline entry */
.timeline-entry{position:relative;padding-left:88px;margin-bottom:48px;z-index:1}
.timeline-entry:last-child{margin-bottom:0}

/* Fade transition for filtering */
.timeline-entry{transition:opacity .4s cubic-bezier(.16,1,.3,1),transform .4s cubic-bezier(.16,1,.3,1),max-height .5s cubic-bezier(.16,1,.3,1)}
.timeline-entry.filtered-out{opacity:0;transform:scale(.96) translateY(-8px);max-height:0;margin-bottom:0;overflow:hidden;pointer-events:none}

/* Timeline dot on the line */
.timeline-dot{
  position:absolute;
  left:32px;top:28px;
  width:18px;height:18px;
  border-radius:50%;
  background:var(--bg);
  border:2px solid var(--primary);
  z-index:2;
  display:grid;place-items:center;
  transition:all .4s;
}
.timeline-dot::after{
  content:'';
  width:8px;height:8px;
  border-radius:50%;
  background:var(--primary);
  opacity:0;
  transition:opacity .4s,box-shadow .4s;
}
.timeline-entry.visible .timeline-dot::after{
  opacity:1;
  box-shadow:0 0 12px var(--primary),0 0 24px rgba(255,255,255,.4);
}
.timeline-entry.visible .timeline-dot{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(255,255,255,.12);
}

/* Major version dot (v3.0.0) */
.timeline-entry--major .timeline-dot{
  width:22px;height:22px;
  left:30px;top:26px;
  border-width:3px;
  border-color:var(--accent);
}
.timeline-entry--major .timeline-dot::after{
  width:10px;height:10px;
}

/* Entry card */
.timeline-card{
  border-radius:var(--r-xl);
  background:linear-gradient(145deg,rgba(255,255,255,.05) 0%,rgba(10,10,10,.5) 40%,rgba(229,229,229,.03) 100%);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  padding:28px 32px;
  position:relative;
  overflow:hidden;
  transition:border-color .3s,box-shadow .3s;
}
.timeline-card:hover{
  border-color:rgba(255,255,255,.3);
  box-shadow:0 20px 60px rgba(10,10,10,.5),0 0 40px rgba(255,255,255,.08);
}
/* Top gradient line */
.timeline-card::before{
  content:'';
  position:absolute;
  top:0;left:15%;right:15%;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),rgba(229,229,229,.3),transparent);
  opacity:0;
  transition:opacity .3s;
}
.timeline-card:hover::before{opacity:1}

/* Mouse glow */
.timeline-card__glow{
  position:absolute;inset:0;
  border-radius:inherit;
  pointer-events:none;
  z-index:0;
}

/* Card header */
.timeline-header{display:flex;align-items:center;gap:16px;margin-bottom:16px;flex-wrap:wrap;position:relative;z-index:1}

.timeline-meta{display:flex;flex-direction:column;gap:2px}
.timeline-date{font-family:'Space Mono',monospace;font-size:12px;color:var(--dim);letter-spacing:.04em;text-transform:uppercase}
.timeline-version{font-family:'Space Mono',monospace;font-size:14px;font-weight:700;color:var(--accent);letter-spacing:-.01em}
.timeline-version--major{font-size:16px;background:linear-gradient(135deg,var(--peak),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

.timeline-tags{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}

/* Tag badges */
.tag{display:inline-flex;align-items:center;gap:5px;padding:4px 12px;border-radius:100px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;font-family:'Space Mono',monospace;transition:box-shadow .25s}
.tag:hover{box-shadow:0 0 16px rgba(255,255,255,.08)}

.tag--feature{color:#34D399;background:rgba(52,211,153,.1);border:1px solid rgba(52,211,153,.2)}
.tag--improvement{color:rgba(255,255,255,.7);background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2)}
.tag--fix{color:#FBBF24;background:rgba(251,191,36,.1);border:1px solid rgba(251,191,36,.2)}
.tag--breaking{color:#F87171;background:rgba(248,113,113,.1);border:1px solid rgba(248,113,113,.2)}

/* Card title & body */
.timeline-title{font-family:'Bricolage Grotesque',sans-serif;font-size:20px;font-weight:500;letter-spacing:-.02em;margin-bottom:10px;position:relative;z-index:1}
.timeline-desc{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:16px;position:relative;z-index:1}

/* Bullet list */
.timeline-list{display:flex;flex-direction:column;gap:8px;position:relative;z-index:1}
.timeline-list li{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:rgba(248,247,255,.7);line-height:1.6}
.timeline-list li::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--primary);flex-shrink:0;margin-top:8px}

/* Stagger for bullet lists */
.stagger-list li{opacity:0;transform:translateY(16px);transition:opacity .5s cubic-bezier(.16,1,.3,1),transform .5s cubic-bezier(.16,1,.3,1)}
.timeline-entry.visible .stagger-list li{opacity:1;transform:none}
.timeline-entry.visible .stagger-list li:nth-child(1){transition-delay:.15s}
.timeline-entry.visible .stagger-list li:nth-child(2){transition-delay:.22s}
.timeline-entry.visible .stagger-list li:nth-child(3){transition-delay:.29s}
.timeline-entry.visible .stagger-list li:nth-child(4){transition-delay:.36s}
.timeline-entry.visible .stagger-list li:nth-child(5){transition-delay:.43s}
.timeline-entry.visible .stagger-list li:nth-child(6){transition-delay:.50s}

/* Code snippet inside entry */
.timeline-code{
  margin-top:16px;
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  padding:16px 20px;
  font-family:'Space Mono',monospace;
  font-size:12px;
  color:rgba(248,247,255,.65);
  overflow-x:auto;
  line-height:1.7;
  position:relative;
  z-index:1;
}
.timeline-code .code-keyword{color:var(--accent)}
.timeline-code .code-string{color:#34D399}
.timeline-code .code-comment{color:var(--dim);font-style:italic}
.timeline-code .code-fn{color:#FBBF24}
.timeline-code .code-num{color:#F87171}

/* Breaking change warning box */
.breaking-notice{
  margin-top:16px;
  padding:14px 18px;
  border-radius:12px;
  background:rgba(248,113,113,.06);
  border:1px solid rgba(248,113,113,.15);
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:13px;
  color:rgba(248,113,113,.85);
  line-height:1.6;
  position:relative;
  z-index:1;
}
.breaking-notice svg{flex-shrink:0;margin-top:2px;color:#F87171}

/* ─────────────────────────────────────────
   SUBSCRIBE SECTION
───────────────────────────────────────── */
.subscribe{padding:56px 0 80px;position:relative;z-index:1}
.subscribe-panel{
  max-width:720px;
  margin:0 auto;
  border-radius:var(--r-xl);
  background:linear-gradient(145deg,rgba(255,255,255,.08) 0%,rgba(10,10,10,.6) 40%,rgba(229,229,229,.06) 100%);
  border:1px solid rgba(255,255,255,.2);
  backdrop-filter:blur(40px);
  -webkit-backdrop-filter:blur(40px);
  padding:48px 48px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.subscribe-panel::before{
  content:'';
  position:absolute;inset:0;
  border-radius:inherit;
  background-image:var(--noise-url);
  background-size:96px 96px;
  pointer-events:none;
  opacity:.12;
}
.subscribe-panel::after{
  content:'';
  position:absolute;
  top:0;left:20%;right:20%;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),rgba(229,229,229,.5),transparent);
}
.subscribe__icon{
  width:52px;height:52px;
  border-radius:14px;
  background:var(--primary-dim);
  border:1px solid rgba(255,255,255,.25);
  display:grid;place-items:center;
  margin:0 auto 20px;
  position:relative;z-index:1;
}
.subscribe__icon svg{width:24px;height:24px;color:var(--accent)}
.subscribe__title{
  font-family:'Bricolage Grotesque',sans-serif;
  font-size:clamp(20px,2.4vw,28px);
  font-weight:400;
  letter-spacing:-.03em;
  margin-bottom:8px;
  position:relative;z-index:1;
}
.subscribe__sub{
  font-size:14px;
  color:var(--muted);
  line-height:1.6;
  margin-bottom:28px;
  position:relative;z-index:1;
}

/* Email form */
.subscribe-form{
  display:flex;
  gap:12px;
  max-width:460px;
  margin:0 auto 24px;
  position:relative;z-index:1;
}
.subscribe-input{
  flex:1;
  padding:12px 18px;
  border-radius:12px;
  border:1px solid var(--glass-border);
  background:rgba(0,0,0,.3);
  color:var(--text);
  font-size:14px;
  font-family:'Inter',sans-serif;
  outline:none;
  transition:border-color .25s,box-shadow .25s;
}
.subscribe-input::placeholder{color:var(--dim)}
.subscribe-input:focus{
  border-color:rgba(255,255,255,.5);
  box-shadow:0 0 0 3px rgba(255,255,255,.12);
}
.subscribe-btn{
  padding:12px 24px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--primary),rgba(255,255,255,.7));
  color:#fff;
  font-size:14px;
  font-weight:500;
  border:none;
  cursor:pointer;
  white-space:nowrap;
  transition:all .25s;
  box-shadow:0 0 20px rgba(255,255,255,.3);
}
.subscribe-btn:hover{
  box-shadow:0 0 32px rgba(255,255,255,.5);
  transform:translateY(-1px);
}

/* Checkbox options */
.subscribe-options{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  flex-wrap:wrap;
  position:relative;z-index:1;
}
.subscribe-option{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--muted);
  cursor:pointer;
  user-select:none;
  transition:color .2s;
}
.subscribe-option:hover{color:var(--text)}
.subscribe-option input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:16px;height:16px;
  border-radius:4px;
  border:1px solid var(--glass-border);
  background:rgba(0,0,0,.3);
  cursor:pointer;
  position:relative;
  transition:all .2s;
  flex-shrink:0;
}
.subscribe-option input[type="checkbox"]:checked{
  background:var(--primary);
  border-color:var(--primary);
}
.subscribe-option input[type="checkbox"]:checked::after{
  content:'';
  position:absolute;
  left:4px;top:1px;
  width:5px;height:9px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media(max-width:1024px){
  .timeline::before,.timeline::after{left:28px}
  .timeline-entry{padding-left:72px}
  .timeline-dot{left:20px}
  .timeline-entry--major .timeline-dot{left:18px}
}
@media(max-width:768px){
  .page-hero{padding:120px 0 56px}

  .filter-bar__inner{gap:8px}
  .filter-pill{padding:6px 14px;font-size:12px}

  .timeline::before,.timeline::after{left:20px}
  .timeline-entry{padding-left:56px}
  .timeline-dot{left:12px;width:16px;height:16px}
  .timeline-dot::after{width:6px;height:6px}
  .timeline-entry--major .timeline-dot{left:10px;width:20px;height:20px}
  .timeline-entry--major .timeline-dot::after{width:8px;height:8px}

  .timeline-card{padding:22px 20px}
  .timeline-header{gap:10px}
  .timeline-tags{margin-left:0}

  .subscribe-panel{padding:36px 24px}
  .subscribe-form{flex-direction:column}
  .subscribe-options{gap:16px}
}
@media(max-width:480px){
  .page-hero{padding:100px 0 48px}
  .timeline-entry{padding-left:48px}
  .timeline::before,.timeline::after{left:16px}
  .timeline-dot{left:8px;width:16px;height:16px}
  .timeline-entry--major .timeline-dot{left:6px}
  .timeline-card{padding:20px 16px}
  .timeline-title{font-size:17px}
  .tag{font-size:10px;padding:3px 10px}
  .filter-pill{padding:5px 12px;font-size:11px}

  /* Prevent timeline code blocks from overflowing */
  .timeline-code{padding:12px 14px;font-size:11px;word-break:break-all}
  /* Breaking notice text wrapping */
  .breaking-notice{padding:12px 14px;font-size:12px;flex-direction:column;gap:8px}
  .breaking-notice code{word-break:break-all}
  /* Subscribe panel tighter on small screens */
  .subscribe-panel{padding:28px 16px}
  .subscribe__title{font-size:18px}
  .subscribe__sub{font-size:13px;margin-bottom:20px}
  .subscribe-form{max-width:100%}
  .subscribe-options{gap:12px;flex-direction:column;align-items:flex-start}
  /* Timeline list items */
  .timeline-list li{font-size:13px}
  .timeline-desc{font-size:13px}
  /* Prevent horizontal overflow on all timeline card content */
  .timeline-card{overflow:hidden;word-wrap:break-word;overflow-wrap:break-word}
}
@media(max-width:375px){
  .page-hero{padding:96px 0 40px}
  .page-hero .section-title{font-size:clamp(24px,7vw,32px)!important}
  .filter-bar{padding:0 0 40px}
  .filter-bar__inner{gap:6px}
  .filter-pill{padding:5px 10px;font-size:10px;gap:5px}
  .timeline-entry{padding-left:40px;margin-bottom:36px}
  .timeline::before,.timeline::after{left:12px}
  .timeline-dot{left:4px;width:16px;height:16px;top:24px}
  .timeline-entry--major .timeline-dot{left:3px;width:18px;height:18px;top:22px}
  .timeline-card{padding:16px 12px;border-radius:var(--r-lg)}
  .timeline-header{gap:8px}
  .timeline-title{font-size:16px}
  .timeline-version{font-size:13px}
  .timeline-date{font-size:11px}
  .tag{font-size:9px;padding:3px 8px;gap:4px}
  .timeline-code{padding:10px 12px;font-size:10px}
  .breaking-notice{padding:10px 12px;font-size:11px}
  .subscribe-panel{padding:24px 14px;border-radius:var(--r-lg)}
  .subscribe-btn{padding:12px 18px;font-size:13px}
  .subscribe-input{padding:12px 14px;font-size:13px}
  .section-sep{margin:0 12px}
}
