/* ═══════════════════════════════════════════════════════
   CHANGELOG MODAL
═══════════════════════════════════════════════════════ */

/* ── Overlay: Vignette statt Blur ── */
#changelogOverlay {
    position: fixed; inset: 0; z-index: 9998;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.92) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
#changelogOverlay.cl-open {
    opacity: 1; pointer-events: all;
}

/* ── Dialog box ── */
#changelogBox {
    background: var(--surface2);
    border: 1px solid rgba(255,255,255,0.07);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    width: 100%; max-width: 460px;
    box-shadow:
        var(--shadow-2, 0 20px 56px rgba(0,0,0,0.6)), 0 0 0 1px rgba(232,25,44,0.08);
    overflow: hidden;
    transform: translateY(-20px);
    opacity: 0;
    transition:
        transform 0.3s cubic-bezier(0.34,1.42,0.64,1),
        opacity 0.22s ease;
    position: relative;
}
#changelogOverlay.cl-open #changelogBox {
    transform: translateY(0);
    opacity: 1;
}

/* ── Dekorativer Header-Band mit Grid-Textur ── */
.cl-hero {
    position: relative;
    height: 130px;
    overflow: hidden;
    background: #0a0a10;
    border-bottom: 1px solid rgba(255,255,255,0.055);
}
/* Grid-Textur (wie Login-Hero) */
.cl-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 90% 100% at 50% 50%, black 30%, transparent 100%);
}
/* Red center glow */
.cl-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%,
        rgba(232,25,44,0.18) 0%,
        transparent 70%);
    pointer-events: none;
}
/* Scan line */
.cl-hero-scan {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%, var(--red) 40%, var(--red) 60%, transparent 100%);
    opacity: 0.5;
    animation: clScan 3s ease-in-out infinite;
}
@keyframes clScan {
    0%,100% { opacity: 0.35; transform: scaleX(0.6); }
    50%      { opacity: 0.7;  transform: scaleX(1); }
}
/* Icon in Hero */
.cl-hero-icon {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 1;
}
.cl-icon-ring {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    background: rgba(232,25,44,0.08);
    border: 1px solid rgba(232,25,44,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--fs-lg);
    color: var(--red);
    box-shadow:
        0 0 0 6px rgba(232,25,44,0.05), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: box-shadow 0.3s ease;
}
/* Corner decorations */
.cl-hero-corner {
    position: absolute;
    width: 12px; height: 12px;
    border-color: rgba(232,25,44,0.35);
    border-style: solid;
}
.cl-hero-corner.tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.cl-hero-corner.tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.cl-hero-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.cl-hero-corner.br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

/* ── Header row (version + close) ── */
.cl-header {
    padding: 1.1rem 1.25rem 0;
    display: flex; align-items: center; justify-content: space-between;
}
.cl-version-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--mono);
    font-size: var(--fs-2xs); font-weight: 600;
    letter-spacing: 0.07em;
    color: var(--red-text);
    background: var(--red-dim);
    border: 1px solid rgba(232,25,44,0.25);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    text-transform: uppercase;
}
.cl-version-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--red);
    display: inline-block;
    box-shadow: none;
    animation: clPulse 2s ease-in-out infinite;
}
@keyframes clPulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
.cl-skip-x {
    background: none; border: none;
    color: var(--text-dim); cursor: pointer;
    font-size: var(--fs-base); line-height: 1;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.cl-skip-x:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

/* ── Slide viewport ── */
.cl-slides-wrap {
    overflow: hidden;
    position: relative;
}
.cl-slides-track {
    display: flex;
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}
.cl-slide {
    flex: 0 0 100%;
    padding: 1.1rem 1.25rem 0;
    min-height: 130px;
}

/* ── Title & body ── */
.cl-slide-title {
    font-family: var(--cond);
    font-size: var(--fs-lg); font-weight: 800;
    letter-spacing: 0.025em;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.45rem;
}
.cl-slide-body {
    font-family: var(--sans);
    font-size: var(--fs-sm);
    color: var(--text-mid);
    line-height: 1.68;
}
.cl-slide-body strong {
    color: var(--text);
    font-weight: 600;
}

/* ── Tag chips ── */
/* ── V2: Animierte Feature-Liste ── */
.cl-list {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.cl-list-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: var(--fs-xs);
    color: var(--text-mid);
    opacity: 0;
    transform: translateX(-8px);
}
.cl-list-item.cl-anim {
    animation: clListIn 0.4s cubic-bezier(.16,1,.3,1) forwards;
    animation-delay: var(--d, 0ms);
}
@keyframes clListIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: none; }
}
.cl-list-icon {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--red-dim);
    color: var(--red-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xs);
}
.cl-list-item kbd,
.cl-slide-body kbd {
    font-family: var(--mono);
    font-size: var(--fs-3xs);
    background: var(--surface3);
    border: 1px solid rgba(255,255,255,0.14);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm);
    padding: 1px 5px;
    color: var(--text);
    margin: 0 1px;
}
@media (prefers-reduced-motion: reduce) {
    .cl-list-item { opacity: 1; transform: none; }
}

.cl-tags {
    display: flex; flex-wrap: wrap; gap: 0.3rem;
    margin-top: 0.8rem;
}
.cl-tag {
    font-family: var(--mono);
    font-size: var(--fs-3xs); font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.52rem;
    border-radius: 999px;
    border: 1px solid;
    text-transform: uppercase;
}
.cl-tag-new    { color: var(--green);  background: rgba(31,207,90,0.07);  border-color: rgba(31,207,90,0.22); }
.cl-tag-fix    { color: var(--yellow); background: rgba(245,158,11,0.07); border-color: rgba(245,158,11,0.22); }
.cl-tag-update { color: var(--blue);   background: rgba(79,142,247,0.09); border-color: rgba(79,142,247,0.25); }
.cl-tag-break  { color: var(--red);    background: var(--red-dim);        border-color: rgba(232,25,44,0.28); }

/* ── Progress bar + dots row ── */
.cl-progress-row {
    display: flex; align-items: center;
    padding: 1rem 1.25rem 0;
    gap: 0.75rem;
}
.cl-progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
}
.cl-progress-fill {
    height: 100%;
    background: var(--red);
    border-radius: 999px;
    box-shadow: none;
    transition: width 0.38s cubic-bezier(0.4,0,0.2,1);
}
.cl-dots {
    display: flex; gap: 5px;
}
.cl-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, width 0.25s;
    padding: 0; outline: none;
}
.cl-dot.active {
    background: var(--red);
    box-shadow: none;
    width: 14px;
    border-radius: 999px;
}
.cl-slide-counter {
    font-family: var(--mono);
    font-size: var(--fs-3xs);
    color: var(--text-dim);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ── Divider ── */
.cl-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 1.25rem 0;
}

/* ── Footer ── */
.cl-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 1.25rem 1.25rem;
    gap: 0.5rem;
}
.cl-btn-skip {
    font-family: var(--sans);
    font-size: var(--fs-xs); font-weight: 600;
    padding: 0.48rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    outline: none;
}
.cl-btn-skip:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-mid);
    border-color: rgba(255,255,255,0.13);
}
.cl-btn-next {
    font-family: var(--sans);
    font-size: var(--fs-xs); font-weight: 700;
    padding: 0.48rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(232,25,44,0.7);
    background: var(--red);
    color: #fff;
    cursor: pointer;
    box-shadow: none;
    transition: box-shadow 0.15s, transform 0.12s, filter 0.15s;
    outline: none;
    display: flex; align-items: center; gap: 0.4rem;
}
.cl-btn-next:hover {
    box-shadow: none;
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.cl-btn-next:active { transform: translateY(0); }
.cl-btn-next .cl-arrow {
    font-size: var(--fs-2xs);
    transition: transform 0.15s;
}
.cl-btn-next:hover .cl-arrow { transform: translateX(2px); }
