/* ── Hero ── */
.changelog-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}
.changelog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,.25) 0%, transparent 70%);
    pointer-events: none;
}
.changelog-hero .hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
}
.changelog-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.changelog-hero p {
    font-size: 1.05rem;
    opacity: .75;
    max-width: 520px;
}
.hero-back-btn {
    position: absolute;
    top: 24px;
    right: 24px;
}

/* ── Timeline wrapper ── */
.changelog-wrapper {
    margin-top: -40px;
    padding-bottom: 60px;
}

/* ── Timeline line ── */
.timeline {
    position: relative;
    padding-left: 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #6366f1, #a855f7, #ec4899);
    border-radius: 2px;
}

/* ── Single entry ── */
.timeline-entry {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    position: relative;
}

/* ── Dot ── */
.timeline-dot {
    flex-shrink: 0;
    width: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}
.timeline-dot .dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6366f1;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #6366f1;
    z-index: 1;
}
.timeline-dot .dot.latest {
    background: #10b981;
    box-shadow: 0 0 0 3px #10b981;
}

/* ── Card ── */
.timeline-card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    border: 1px solid #f0f0f5;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.timeline-card:hover {
    box-shadow: 0 8px 36px rgba(99,102,241,.13);
    transform: translateY(-2px);
}

/* ── Card header ── */
.timeline-card .card-head {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.version-pill {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: .5px;
}
.latest-pill {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.card-title-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e1e2e;
    margin-top: 8px;
}
.release-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: #9ca3af;
    white-space: nowrap;
}
.release-date i { color: #c4b5fd; }

/* ── Card body ── */
.timeline-card .card-body-inner {
    padding: 20px 24px 24px;
}
.whats-new-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6366f1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.changelog-text {
    color: #374151;
    font-size: .95rem;
    white-space: normal;
}
.changelog-text p {
    margin-bottom: 10px;
}
.changelog-text p:last-child {
    margin-bottom: 0;
}
.changelog-text ul {
    margin-bottom: 10px;
    padding-left: 20px;
}
.changelog-text li {
    margin-bottom: 4px;
}

/* ── Collapsible card ── */
.timeline-card .card-head {
    cursor: pointer;
    user-select: none;
}
.card-head .collapse-caret {
    color: #9ca3af;
    transition: transform .2s;
    margin-left: 8px;
}
.card-head[aria-expanded="true"] .collapse-caret {
    transform: rotate(180deg);
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: #d1d5db;
}

/* ── Responsive ── */
@media (max-width: 576px) {
    .timeline::before { left: 20px; }
    .timeline-dot { width: 42px; }
    .changelog-hero h1 { font-size: 1.7rem; }
    .hero-back-btn { position: static; margin-bottom: 16px; }
}
