/* =========================================================
   Viglar Changelog
   ========================================================= */

.changelog-page {
    overflow: hidden;
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.changelog-hero {
    padding: 82px 0 58px;
    position: relative;
}

.changelog-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 280px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse,
        rgba(0, 200, 255, 0.08) 0%,
        rgba(0, 200, 255, 0.025) 42%,
        transparent 72%
    );
    pointer-events: none;
}

.changelog-hero-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.changelog-kicker {
    margin-bottom: 14px;
    color: #00c8ff;
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.changelog-hero h1 {
    margin: 0;
    color: #f2fbff;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.changelog-intro {
    margin: 20px 0 0;
    color: #dff9ff;
    font-size: 1.25rem;
    line-height: 1.6;
}

.changelog-description {
    max-width: 620px;
    margin: 12px auto 0;
    color: #8999a8;
    font-size: 0.98rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   Changelog list
   --------------------------------------------------------- */

.changelog-list-section {
    padding: 20px 0 90px;
}

.changelog-list {
    max-width: 920px;
    margin: 0 auto;
}

.changelog-entry {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    column-gap: 44px;
    position: relative;
    padding: 42px 0 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.changelog-entry:first-child {
    border-top-color: rgba(0, 200, 255, 0.22);
}

.changelog-entry-date {
    padding-top: 5px;
    color: #71808e;
    font-family: monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: nowrap;
}

.changelog-entry-body {
    position: relative;
    padding-left: 26px;
}

.changelog-entry-body::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(
        to bottom,
        rgba(0, 200, 255, 0.7),
        rgba(0, 200, 255, 0.08)
    );
}

.changelog-entry-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.changelog-entry-heading h2 {
    margin: 0;
    color: #eafaff;
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.changelog-type {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 5px;
    background: rgba(0, 200, 255, 0.055);
    color: #8fdff5;
    font-family: monospace;
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.changelog-type-added {
    border-color: rgba(0, 220, 150, 0.2);
    background: rgba(0, 220, 150, 0.05);
    color: #86e8c5;
}

.changelog-type-fixed {
    border-color: rgba(255, 190, 80, 0.2);
    background: rgba(255, 190, 80, 0.05);
    color: #f1c878;
}

.changelog-type-security {
    border-color: rgba(255, 100, 120, 0.2);
    background: rgba(255, 100, 120, 0.05);
    color: #f29aa6;
}

.changelog-type-ux {
    border-color: rgba(170, 130, 255, 0.2);
    background: rgba(170, 130, 255, 0.05);
    color: #bea9ed;
}

.changelog-type-infrastructure {
    border-color: rgba(130, 160, 180, 0.2);
    background: rgba(130, 160, 180, 0.05);
    color: #a7b9c5;
}

.changelog-type-changed {
    border-color: rgba(0, 200, 255, 0.2);
    background: rgba(0, 200, 255, 0.055);
    color: #8fdff5;
}

.changelog-entry-content {
    max-width: 700px;
    margin-top: 17px;
}

.changelog-entry-content p {
    margin: 0 0 13px;
    color: #9aa9b7;
    font-size: 0.98rem;
    line-height: 1.75;
}

.changelog-entry-content p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   Empty state
   --------------------------------------------------------- */

.changelog-empty {
    max-width: 620px;
    margin: 30px auto 0;
    padding: 70px 30px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
    text-align: center;
}

.changelog-empty-mark {
    margin-bottom: 14px;
    color: #00c8ff;
    font-family: monospace;
    font-size: 1.5rem;
}

.changelog-empty h2 {
    margin: 0;
    color: #eafaff;
    font-size: 1.35rem;
}

.changelog-empty p {
    margin: 8px 0 0;
    color: #7d8b98;
}


/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.changelog-cta {
    padding: 0 0 90px;
}

.changelog-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 920px;
    margin: 0 auto;
    padding: 38px 42px;
    border: 1px solid rgba(0, 200, 255, 0.13);
    border-radius: 14px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(0, 200, 255, 0.07),
            transparent 35%
        ),
        rgba(255, 255, 255, 0.018);
}

.changelog-cta-kicker {
    margin-bottom: 8px;
    color: #00c8ff;
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.changelog-cta h2 {
    margin: 0;
    color: #eafaff;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.changelog-cta p {
    max-width: 560px;
    margin: 9px 0 0;
    color: #8796a4;
    font-size: 0.92rem;
    line-height: 1.6;
}

.changelog-cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.changelog-btn-primary,
.changelog-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.changelog-btn-primary {
    border: 1px solid rgba(0, 200, 255, 0.5);
    background: rgba(0, 200, 255, 0.1);
    color: #dff9ff;
}

.changelog-btn-primary:hover {
    border-color: rgba(0, 200, 255, 0.8);
    background: rgba(0, 200, 255, 0.16);
    color: #fff;
    transform: translateY(-1px);
}

.changelog-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
    color: #aab8c4;
}

.changelog-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.045);
    color: #eafaff;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 720px) {

    .changelog-hero {
        padding: 60px 0 42px;
    }

    .changelog-intro {
        font-size: 1.1rem;
    }

    .changelog-list-section {
        padding-bottom: 65px;
    }

    .changelog-entry {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 34px 0 38px;
    }

    .changelog-entry-date {
        padding-top: 0;
        font-size: 0.76rem;
    }

    .changelog-entry-body {
        padding-left: 18px;
    }

    .changelog-entry-heading {
        gap: 9px;
    }

    .changelog-entry-heading h2 {
        font-size: 1.25rem;
    }

    .changelog-entry-content {
        margin-top: 14px;
    }

    .changelog-entry-content p {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .changelog-cta {
        padding-bottom: 65px;
    }

    .changelog-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
        padding: 28px 24px;
    }

    .changelog-cta-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .changelog-btn-primary,
    .changelog-btn-secondary {
        flex: 1;
    }
}

/* pagination */

.changelog-pagination {
    max-width: 920px;
    margin: 42px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.changelog-pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.changelog-pagination a,
.changelog-pagination-dots {
    min-width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-family: monospace;
    font-size: 0.85rem;

    text-decoration: none;
}

.changelog-pagination-pages a {
    border: 1px solid transparent;
    color: #82919e;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.changelog-pagination-pages a:hover {
    color: #dff9ff;
    border-color: rgba(0, 200, 255, 0.22);
    background: rgba(0, 200, 255, 0.05);
}

.changelog-pagination-pages a.is-current {
    color: #dff9ff;
    border-color: rgba(0, 200, 255, 0.35);
    background: rgba(0, 200, 255, 0.09);
}

.changelog-pagination-dots {
    color: #52616e;
}

.changelog-pagination-arrow {
    color: #8ea0ad;
    white-space: nowrap;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.changelog-pagination-arrow:hover {
    color: #dff9ff;
}

@media (max-width: 720px) {
    .changelog-pagination {
        gap: 12px;
    }

    .changelog-pagination-arrow {
        font-size: 0.82rem;
    }

    .changelog-pagination-pages {
        gap: 3px;
    }

    .changelog-pagination a,
    .changelog-pagination-dots {
        min-width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

