/* ==========================================================================
   Octelligence — Changelog page
   Reuses tokens from /assets/site.css
   ========================================================================== */

.changelog-shell {
  max-width: 1200px;
}

/* ---------------------------------------------------------------
   Hero — matches releases dark navy
   --------------------------------------------------------------- */
.changelog-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1f3a 0%, #102a4f 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3.5rem 0 2.5rem;
}
.changelog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(28, 181, 185, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 5% 100%, rgba(96, 165, 250, 0.10) 0%, transparent 55%);
}
.changelog-hero .container { position: relative; z-index: 1; }

.changelog-breadcrumbs {
  font-size: .85rem;
  color: rgba(255, 255, 255, 0.7);
}
.changelog-breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.changelog-breadcrumbs a:hover { color: #fff; }
.changelog-breadcrumbs .separator {
  margin: 0 .55rem;
  color: rgba(255, 255, 255, 0.4);
}

.changelog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5eead4;
  background: rgba(28, 181, 185, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.3);
  padding: .32rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.changelog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 0.7rem;
  color: #fff;
}
.changelog-hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
  margin: 0 0 1.25rem;
}
.changelog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, 0.7);
}
.changelog-hero__meta a {
  color: #5eead4;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.changelog-hero__meta a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
   Main section
   --------------------------------------------------------------- */
.changelog-section { padding: 3rem 0 5rem; }

.changelog-month {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 2.75rem 0 1rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--border-light);
}
.changelog-month:first-of-type { margin-top: 0; }
.changelog-month__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}
.changelog-month__count {
  font-size: .8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-light);
}
.changelog-entry:last-child { border-bottom: none; }

.changelog-entry__date {
  font-size: .82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: .2rem;
}

.changelog-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .5rem;
}
.changelog-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .18rem .5rem;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1.2;
}
.changelog-tag--cap      { background: rgba(30, 64, 175, 0.08);   color: #1e3a8a; }
.changelog-tag--cert     { background: rgba(28, 181, 185, 0.12);  color: #0e7e80; }
.changelog-tag--records  { background: rgba(124, 58, 237, 0.08);  color: #6d28d9; }
.changelog-tag--migration{ background: rgba(22, 163, 74, 0.08);   color: #15803d; }
.changelog-tag--security { background: rgba(185, 127, 28, 0.12);  color: #92560e; }
.changelog-tag--team     { background: rgba(100, 116, 139, 0.1);  color: #475569; }
.changelog-tag--plans    { background: rgba(219, 39, 119, 0.08);  color: #9d174d; }
.changelog-tag--brand    { background: rgba(71, 85, 105, 0.08);   color: #334155; }
.changelog-tag--site     { background: rgba(71, 85, 105, 0.08);   color: #334155; }
.changelog-tag--docs     { background: rgba(71, 85, 105, 0.08);   color: #334155; }
.changelog-tag--perf     { background: rgba(15, 118, 110, 0.08);  color: #0f766e; }
.changelog-tag--blog     { background: rgba(71, 85, 105, 0.08);   color: #334155; }
.changelog-tag--research { background: rgba(67, 56, 202, 0.08);   color: #4338ca; }
.changelog-tag--learn    { background: rgba(217, 119, 6, 0.10);   color: #b45309; }

.changelog-entry__body h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 .35rem;
  color: var(--text);
  letter-spacing: -0.005em;
}
.changelog-entry__body p {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}
.changelog-entry__body a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile */
@media (max-width: 575.98px) {
  .changelog-entry {
    grid-template-columns: 1fr;
    gap: .4rem;
  }
  .changelog-entry__date {
    padding-top: 0;
    font-size: .8rem;
  }
}

/* Subscribe block at bottom */
.changelog-subscribe {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  text-align: center;
}
.changelog-subscribe h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}
.changelog-subscribe p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.changelog-subscribe .btn { margin: 0 .25rem; }
