/* vextro.nl/changes — publieke changelog. Zelfde huisstijl als de rest van de site (site.css). */

.chg-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: center; }
.chg-hero h1 { margin: 0 0 12px; }
.chg-hero p { color: var(--text-muted); font-size: 17px; margin: 0; max-width: 56ch; }
.chg-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; color: var(--text-muted); }
.chg-stats strong { color: var(--text); font-weight: 700; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Meldingen-kaart */
.chg-notify {
    position: relative; padding: 24px; border-radius: var(--radius-lg, 20px);
    background: linear-gradient(180deg, rgba(89, 168, 255, .08), rgba(89, 168, 255, .02)), var(--card);
    border: 1px solid rgba(89, 168, 255, .28); box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.chg-notify-icon {
    width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(89, 168, 255, .14); color: var(--blue); margin-bottom: 14px;
}
.chg-notify h2 { margin: 0 0 6px; font-size: 20px; }
.chg-notify > p { font-size: 14.5px; margin: 0 0 16px; }
.chg-notify-btn { width: 100%; justify-content: center; }
.chg-notify-hint { font-size: 13px !important; color: var(--text-faint) !important; margin: 10px 0 0 !important; }
.chg-notify-state { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); margin: 0 0 12px; }
.chg-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); flex: none; }

.chg-msg { font-size: 13.5px !important; line-height: 1.5; padding: 10px 12px; border-radius: 10px; margin: 0 0 14px !important; border: 1px solid; }
.chg-msg-success { color: #6ee7b7 !important; background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .3); }
.chg-msg-info    { color: #9ccaff !important; background: rgba(89, 168, 255, .08); border-color: rgba(89, 168, 255, .3); }
.chg-msg-warn    { color: #fcd34d !important; background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .3); }
.chg-msg-error   { color: #fca5a5 !important; background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .3); }

/* Filters */
.chg-sec { padding-top: 40px; }
.chg-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.chg-input {
    height: 44px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 15px;
    background: var(--card); color: var(--text); border: 1px solid var(--line-strong, #2c3342);
}
.chg-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(89, 168, 255, .2); }
.chg-search { flex: 1 1 280px; min-width: 0; }
select.chg-input { flex: 0 1 180px; }

.chg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.chg-chip {
    --k: var(--text-muted);
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
    font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text-muted);
    background: rgba(255, 255, 255, .03); border: 1px solid var(--border);
}
.chg-chip span:last-child { font-weight: 500; color: var(--text-faint); }
.chg-chip:hover { color: var(--text); border-color: var(--line-strong, #2c3342); }
.chg-chip.is-active { color: var(--text); border-color: var(--k); background: color-mix(in srgb, var(--k) 12%, transparent); }
.chg-chip:not([class*="chg-k-"]).is-active { --k: var(--blue); }
.chg-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k); }

.chg-k-new      { --k: #4ade80; }
.chg-k-improved { --k: #59a8ff; }
.chg-k-fixed    { --k: #fb923c; }
.chg-k-removed  { --k: #f87171; }

/* Tijdlijn */
.chg-feed { list-style: none; margin: 0; padding: 0; }
.chg-release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; position: relative; padding-bottom: 36px; }
.chg-release::before {
    content: ''; position: absolute; left: 196px; top: 10px; bottom: 0; width: 1px; background: var(--border);
}
.chg-release:last-child::before { bottom: auto; height: 20px; }
.chg-release-side { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.chg-release-side::after {
    content: ''; position: absolute; right: -21px; top: 7px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--text-faint);
}
.chg-release.is-latest .chg-release-side::after { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px rgba(89, 168, 255, .2); }
.chg-version {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: 15px;
    padding: 4px 10px; border-radius: 8px; background: rgba(89, 168, 255, .12); color: var(--blue);
}
.chg-release-side time { font-size: 13.5px; color: var(--text-muted); }
.chg-latest {
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px; color: #4ade80; background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .3);
}

.chg-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 6px 22px 20px;
}
.chg-release.is-latest .chg-card { border-color: rgba(89, 168, 255, .35); box-shadow: 0 0 0 4px rgba(89, 168, 255, .06); }
.chg-kind { margin-top: 16px; }
.chg-kind h3 {
    display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: inherit;
    font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--k);
}
.chg-kind ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chg-kind li {
    padding: 10px 14px; border-radius: 10px; line-height: 1.55; font-size: 15px; color: var(--text);
    background: rgba(255, 255, 255, .025); border-left: 3px solid var(--k);
}

.chg-empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-strong, #2c3342); border-radius: 16px; }
.chg-empty h2 { margin: 0 0 8px; font-size: 22px; }
.chg-empty p { margin: 0; color: var(--text-muted); }
.chg-empty a { color: var(--blue); }

@media (max-width: 900px) {
    .chg-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
    .chg-release { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-left: 22px; }
    .chg-release::before { left: 5px; }
    .chg-release-side { position: static; flex-direction: row; align-items: center; flex-wrap: wrap; text-align: left; gap: 10px; }
    .chg-release-side::after { right: auto; left: -22px; top: 8px; }
    .chg-card { padding: 4px 16px 16px; }
    select.chg-input { flex: 1 1 140px; }
}
.chg-admin-note { margin: 0 0 20px !important; }
