/* ═══════════════════════════════════════════════════════════════
   StoreElevate — changelog.css
═══════════════════════════════════════════════════════════════ */

/* ── Changelog Hero ────────────────────────────────────────── */
.cl-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  background: var(--c-base);
  position: relative;
  overflow: hidden;
}
.cl-hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,.1), transparent 70%);
  pointer-events: none;
}

.cl-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.cl-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.cl-hero__sub {
  color: var(--c-muted);
  font-size: 1.125rem;
  max-width: 480px;
  line-height: 1.75;
}

/* ── Changelog Main ────────────────────────────────────────── */
.cl-main { background: var(--c-base); }

/* ── Release Entry ─────────────────────────────────────────── */
.cl-release {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 48px;
  position: relative;
  padding-bottom: 60px;
}

/* vertical timeline line */
.cl-release::before {
  content: '';
  position: absolute;
  left: 220px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--c-border);
  transform: translateX(-50%);
}

.cl-release--first::before { background: transparent; }

/* ── Release Meta ──────────────────────────────────────────── */
.cl-release__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 4px;
  position: relative;
  text-align: right;
}

.cl-release__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-blue);
  border: 3px solid var(--c-base);
  box-shadow: 0 0 0 2px var(--c-blue);
  position: absolute;
  right: -55px;
  top: 4px;
}

.cl-release__dot--first {
  background: #a78bfa;
  box-shadow: 0 0 0 2px #a78bfa;
}

.cl-release__version {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

.cl-release__date {
  font-size: .8125rem;
  color: var(--c-faint);
}

/* ── Release Body ──────────────────────────────────────────── */
.cl-release__body {
  border-left: 1px solid var(--c-border);
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cl-release__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
}

.cl-release__summary {
  color: var(--c-muted);
  font-size: .9375rem;
  line-height: 1.7;
  margin-top: -12px;
}

/* ── Change Groups ─────────────────────────────────────────── */
.cl-change-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cl-change-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  width: fit-content;
}

.cl-change-label--new      { background: rgba(59,130,246,.12); color: var(--c-blue); border: 1px solid rgba(59,130,246,.25); }
.cl-change-label--improved { background: rgba(16,185,129,.12); color: var(--c-green); border: 1px solid rgba(16,185,129,.25); }
.cl-change-label--fixed    { background: rgba(245,158,11,.12); color: var(--c-amber); border: 1px solid rgba(245,158,11,.25); }
.cl-change-label--security { background: rgba(239,68,68,.12); color: #ef4444; border: 1px solid rgba(239,68,68,.25); }

.cl-changes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
}

.cl-changes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.55;
  list-style: none;
}

.cl-changes li::before {
  content: '–';
  color: var(--c-faint);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cl-release {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 40px;
  }
  .cl-release::before { display: none; }
  .cl-release__meta {
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .cl-release__dot { display: none; }
  .cl-release__body {
    border-left: none;
    border-top: 1px solid var(--c-border);
    padding-left: 0;
    padding-top: 24px;
  }
}
