/* ==========================================================================
   Changelog page — "Changes in TwistedWave"
   Rendered through the "new" layout, so the design tokens from site-new.css
   (--accent, --ink, --border, --radius, --shadow-sm, …) are available here.
   Loaded on top of app-new.css; selectors are scoped under .changes and use
   two classes so they win over app-new.css's `.app-main h1/h2` rules.
   ========================================================================== */

.changes {
  max-width: 860px;
  margin-inline: auto;
}

/* ---- Page header -------------------------------------------------------- */
.changes .changes__header { margin-bottom: clamp(22px, 3.5vw, 30px); }
.changes .changes__title  { margin: 0 0 .3em; }
.changes .changes__subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}
.changes .changes__subtitle strong { color: var(--ink); font-weight: 700; }

/* ---- Filter toolbar ----------------------------------------------------- */
.changes .changes_filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 0 0 clamp(26px, 4vw, 38px);
  padding: 14px 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.changes .changes_filters label {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

/* Platform segmented control (macOS / Windows) */
.changes .seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.changes .seg__btn {
  display: inline-flex;
  align-items: center;
  padding: .5em 1.25em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  color: var(--body);
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.changes .seg__btn:hover {
  color: var(--ink);
  background: var(--surface-alt);
  text-decoration: none;
}
.changes .seg__btn--active,
.changes .seg__btn--active:hover {
  background: var(--accent);
  color: #fff;
}

.changes .changes_filters__beta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.changes .changes_filters__beta input {
  width: 1.05em;
  height: 1.05em;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ---- Release list ------------------------------------------------------- */
.changes .changes-list {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 26px);
}

.changes .release {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3.2vw, 30px);
}

.changes .release__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 18px;
}
.changes .release__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.changes .release__date {
  margin: .35em 0 0;
  font-size: .92rem;
  color: var(--muted);
}

/* Beta pill next to a version number */
.changes .release__badge {
  display: inline-block;
  margin-left: .5em;
  padding: 3px 10px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #8a5a00;
  background: #fdf1d8;
  border: 1px solid #f1d39c;
  border-radius: 999px;
  vertical-align: middle;
}

/* ---- Download buttons --------------------------------------------------- */
.changes .release__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.changes .release__download {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .52em 1.15em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  background: var(--accent);
  border: 1.5px solid transparent;
  box-shadow: 0 8px 18px -10px rgba(19, 131, 224, .8);
  transition: background-color .15s ease, transform .12s ease;
}
.changes .release__download:hover {
  background: var(--accent-strong);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.changes .release__download:active { transform: translateY(0); }
.changes .release__download-icon {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Changelog body (the appcast description: <h2> + <ul>) --------------- */
.changes .release__body > :first-child { margin-top: 0; }
.changes .release__body > :last-child  { margin-bottom: 0; }

.changes .release__body h2 {
  margin: 1.5em 0 .55em;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}

.changes .release__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.changes .release__body li {
  position: relative;
  margin: .5em 0;
  padding-left: 1.5em;
  color: var(--body);
}
.changes .release__body li::before {
  content: "";
  position: absolute;
  left: .25em;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .6;
}

/* ---- Empty state -------------------------------------------------------- */
.changes .changes__empty {
  margin: 0;
  padding: 40px 22px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 560px) {
  .changes .release__downloads { width: 100%; }
  .changes .release__download { flex: 1 1 auto; justify-content: center; }
}
