/* ============================================================
   Annotrack — changelog page
   ============================================================ */

.changelog-hero { padding: 64px 0 48px; }
.changelog-hero .lede { max-width: 60ch; }

.changelog-intro {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.65;
  color: var(--body);
  max-width: 68ch;
  margin: 0 0 40px;
}

/* ---------------- Timeline ---------------- */
.changelog-timeline {
  position: relative;
  padding-left: 40px;
}
.changelog-timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--accent-sage) 40%, var(--hairline) 100%);
}

/* ---------------- Release card ---------------- */
.release {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px 32px 30px;
  margin-bottom: 24px;
  scroll-margin-top: 96px;
  transition: border-color 240ms ease-out, box-shadow 240ms ease-out, transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.release:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(20, 20, 20, 0.16);
}
.release::before {
  content: "";
  position: absolute;
  left: -39px; top: 32px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--app-bg);
  box-shadow: 0 0 0 1px var(--hairline);
}

.release-head {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px;
}
.release-version {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--selected-tint);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
}
.release-date {
  font-family: var(--font-body);
  font-size: 13px; color: var(--muted);
}
.release-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 26px; line-height: 1.2; letter-spacing: -0.2px;
  color: var(--ink);
  margin: 14px 0 4px;
}

/* ---------------- Change groups ---------------- */
.change-group { margin-top: 18px; }
.change-group-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.2px; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 10px;
}
.change-group-label::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 2px; background: currentColor;
}
.change-group--added    .change-group-label { color: var(--success); }
.change-group--improved .change-group-label { color: var(--primary-deep); }
.change-group--fixed    .change-group-label { color: var(--warning); }
.change-group--beta     .change-group-label { color: var(--primary); }
.change-group--meta     .change-group-label { color: var(--muted); }

.change-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.change-list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.6;
  color: var(--body);
}
.change-list li::before {
  content: "";
  position: absolute; left: 2px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-sage);
}
.change-list strong { color: var(--ink); font-weight: 500; }
.change-list .beta-note { color: var(--muted); font-style: italic; }

/* ---------------- Closing note ---------------- */
.changelog-foot {
  margin-top: 8px;
  padding: 26px 32px;
  background: var(--surface-card-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.changelog-foot p {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.6; color: var(--body);
  margin: 0; max-width: 52ch;
}

@media (max-width: 880px) {
  .changelog-timeline { padding-left: 30px; }
  .release { padding: 24px 22px 26px; }
  .release::before { left: -29px; width: 16px; height: 16px; }
  .changelog-timeline::before { left: 8px; }
}
