﻿:root {
    --change-primary: #5b5ce2;
    --change-primary-dark: #4445c7;
    --change-primary-soft: #f0f0ff;
    --change-heading: #171927;
    --change-text: #626a79;
    --change-muted: #9298a6;
    --change-border: #e7e9f0;
    --change-background: #f8f9fc;
    --change-surface: #ffffff;
    --change-new: #15957f;
    --change-new-soft: #eaf9f6;
    --change-improved: #3686ff;
    --change-improved-soft: #edf5ff;
    --change-fixed: #e28b25;
    --change-fixed-soft: #fff6e8;
    --change-security: #8755d9;
    --change-security-soft: #f4efff;
    --change-shadow: 0 18px 45px rgba(24, 30, 65, 0.07);
}

/* =====================================================
   HERO
   ===================================================== */

.changelog-hero {
    position: relative;
    padding: 94px 0 80px;
    overflow: hidden;
    border-bottom: 1px solid var(--change-border);
    background: radial-gradient( circle at 88% 5%, rgba(91, 92, 226, 0.17), transparent 28% ), radial-gradient( circle at 12% 90%, rgba(24, 169, 153, 0.08), transparent 25% ), linear-gradient(135deg, #ffffff, #f7f7ff);
}

    .changelog-hero::before,
    .changelog-hero::after {
        content: "";
        position: absolute;
        border: 1px solid rgba(91, 92, 226, 0.09);
        border-radius: 50%;
    }

    .changelog-hero::before {
        top: -180px;
        right: -95px;
        width: 430px;
        height: 430px;
    }

    .changelog-hero::after {
        bottom: -300px;
        left: -120px;
        width: 520px;
        height: 520px;
    }

.changelog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.changelog-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--change-primary);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.changelog-hero h1 {
    margin: 0;
    color: var(--change-heading);
    font-size: clamp(44px, 6vw, 70px);
    font-weight: 780;
    line-height: 1.06;
    letter-spacing: -0.05em;
}

    .changelog-hero h1 span {
        color: var(--change-primary);
    }

.changelog-hero > .container p,
.changelog-hero-content > p {
    max-width: 760px;
    margin: 23px 0 0;
    color: var(--change-text);
    font-size: 17px;
    line-height: 1.8;
}

.changelog-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 31px;
}

    .changelog-summary > div {
        min-width: 155px;
        padding: 14px 17px;
        border: 1px solid rgba(91, 92, 226, 0.13);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(10px);
    }

    .changelog-summary strong,
    .changelog-summary span {
        display: block;
    }

    .changelog-summary strong {
        color: var(--change-heading);
        font-size: 16px;
    }

    .changelog-summary span {
        margin-top: 2px;
        color: var(--change-muted);
        font-size: 10px;
    }

/* =====================================================
   PAGE LAYOUT
   ===================================================== */

.changelog-section {
    padding: 64px 0 105px;
    background: var(--change-background);
}

.changelog-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 850px);
    justify-content: center;
    gap: 52px;
}

.changelog-sidebar-card {
    position: sticky;
    top: 105px;
    padding: 20px;
    border: 1px solid var(--change-border);
    border-radius: 15px;
    background: var(--change-surface);
}

.changelog-sidebar-label {
    display: block;
    margin-bottom: 13px;
    color: var(--change-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.changelog-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .changelog-sidebar nav a {
        display: flex;
        flex-direction: column;
        padding: 10px 11px;
        border-radius: 8px;
        color: var(--change-text);
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease;
    }

        .changelog-sidebar nav a:hover,
        .changelog-sidebar nav a.active {
            color: var(--change-primary);
            background: var(--change-primary-soft);
        }

    .changelog-sidebar nav span {
        font-size: 12px;
        font-weight: 680;
    }

    .changelog-sidebar nav small {
        margin-top: 2px;
        color: var(--change-muted);
        font-size: 9px;
    }

.changelog-sidebar-note {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background: var(--change-primary-soft);
}

    .changelog-sidebar-note strong {
        display: block;
        margin-bottom: 5px;
        font-size: 12px;
    }

    .changelog-sidebar-note p {
        margin: 0;
        color: var(--change-text);
        font-size: 10px;
        line-height: 1.6;
    }

/* =====================================================
   RELEASE ENTRIES
   ===================================================== */

.changelog-content {
    min-width: 0;
}

.release-entry {
    margin-bottom: 42px;
    overflow: hidden;
    border: 1px solid var(--change-border);
    border-radius: 18px;
    background: var(--change-surface);
    box-shadow: var(--change-shadow);
    scroll-margin-top: 110px;
}

.release-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 31px 34px;
    border-bottom: 1px solid var(--change-border);
    background: radial-gradient( circle at 100% 0, rgba(91, 92, 226, 0.09), transparent 35% ), #ffffff;
}

.release-version-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.release-version {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--change-primary);
    background: var(--change-primary-soft);
    font-size: 10px;
    font-weight: 750;
}

.release-latest {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--change-primary);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.release-header h2 {
    margin: 0;
    color: var(--change-heading);
    font-size: 27px;
    font-weight: 740;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.release-header p {
    max-width: 610px;
    margin: 10px 0 0;
    color: var(--change-text);
    font-size: 13px;
    line-height: 1.7;
}

.release-header time {
    flex: 0 0 auto;
    padding-top: 6px;
    color: var(--change-muted);
    font-size: 11px;
    white-space: nowrap;
}

.release-groups {
    padding: 8px 34px 35px;
}

.release-group {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 23px;
    padding: 28px 0;
    border-bottom: 1px solid var(--change-border);
}

    .release-group:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

.release-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.release-type-new {
    color: var(--change-new);
    background: var(--change-new-soft);
}

.release-type-improved {
    color: var(--change-improved);
    background: var(--change-improved-soft);
}

.release-type-fixed {
    color: var(--change-fixed);
    background: var(--change-fixed-soft);
}

.release-type-security {
    color: var(--change-security);
    background: var(--change-security-soft);
}

.release-items {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.release-item h3 {
    margin: 0 0 6px;
    color: var(--change-heading);
    font-size: 15px;
    font-weight: 700;
}

.release-item p {
    margin: 0;
    color: var(--change-text);
    font-size: 13px;
    line-height: 1.75;
}

.changelog-history-note {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 15px;
    padding: 20px;
    border: 1px solid #dcdcff;
    border-radius: 13px;
    background: var(--change-primary-soft);
}

.changelog-history-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--change-primary);
    background: #ffffff;
    font-weight: 800;
}

.changelog-history-note strong {
    display: block;
    margin-bottom: 5px;
    color: var(--change-heading);
}

.changelog-history-note p {
    margin: 0;
    color: var(--change-text);
    font-size: 12px;
    line-height: 1.7;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 991px) {
    .changelog-layout {
        grid-template-columns: 1fr;
    }

    .changelog-sidebar {
        display: none;
    }

    .changelog-content {
        max-width: 850px;
        margin: 0 auto;
    }
}

@media (max-width: 680px) {
    .changelog-hero {
        padding: 68px 0 60px;
    }

        .changelog-hero h1 {
            font-size: 44px;
        }

    .changelog-section {
        padding-top: 34px;
    }

    .release-header {
        flex-direction: column;
        padding: 26px 23px;
    }

        .release-header time {
            padding-top: 0;
        }

    .release-groups {
        padding: 5px 23px 28px;
    }

    .release-group {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .release-type {
        justify-self: flex-start;
    }

    .release-header h2 {
        font-size: 23px;
    }
}

@media (max-width: 480px) {
    .changelog-summary {
        display: grid;
        grid-template-columns: 1fr;
    }

        .changelog-summary > div {
            min-width: 0;
        }
}
