@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700&family=Bebas+Neue&display=swap');

:root {
    --ch-bg-1: #0e0e16;
    --ch-bg-2: #1a1a2f;
    --ch-bg-3: #231c52;
    --ch-card: rgba(14, 14, 22, 0.86);
    --ch-card-border: rgba(255, 255, 255, 0.18);
    --ch-text: #f3f7fa;
    --ch-muted: #c5c8dd;
    --ch-accent: #8770ed;
    --ch-accent-2: #a284db;
    --ch-shadow: rgba(6, 6, 10, 0.55);
}

.body-changelog {
    min-height: 100vh;
    color: var(--ch-text);
    font-family: 'Barlow', 'Trebuchet MS', sans-serif;
    background:
        linear-gradient(115deg, rgba(12, 10, 24, 0.86), rgba(26, 20, 54, 0.82) 52%, rgba(28, 17, 65, 0.84)),
        url('/images/Banners/BlogPost.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.changelog-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 1rem 4.5rem;
}

.changelog-hero {
    margin-top: 1rem;
    margin-bottom: 2.2rem;
    padding: 1.4rem 1.5rem 1.9rem;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 32px var(--ch-shadow);
    backdrop-filter: blur(5px);
}

.hero-kicker {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0.09em;
    color: var(--ch-accent);
    margin-bottom: 0.3rem;
}

.changelog-hero h1 {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: clamp(2.3rem, 5.2vw, 4.1rem);
    letter-spacing: 0.03em;
    line-height: 0.95;
    margin-bottom: 0.8rem;
    text-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    max-width: 72ch;
    color: var(--ch-muted);
    font-size: 1.08rem;
}

.hero-stats {
    margin-top: 1.3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 0.75rem;
}

.stat-tile {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 0.8rem 0.95rem;
    background: rgba(1, 11, 17, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b9a7ff;
}

.stat-value {
    display: block;
    margin-top: 0.2rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ch-text);
}

.status-box {
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    color: var(--ch-text);
    background-color: rgba(8, 8, 14, 0.38);
}

.status-error {
    border-color: rgba(255, 94, 91, 0.9);
    background-color: rgba(120, 21, 21, 0.35);
}

.changelog-timeline {
    position: relative;
    padding-left: 2rem;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 0.68rem;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--ch-accent), var(--ch-accent-2));
    box-shadow: 0 0 14px rgba(135, 112, 237, 0.45);
}

.release-card {
    position: relative;
    margin: 0 0 1.2rem;
    padding: 1.1rem 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--ch-card-border);
    background: var(--ch-card);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
    animation: cardEnter 0.45s ease both;
}

.release-card::before {
    content: '';
    position: absolute;
    left: -1.74rem;
    top: 1.1rem;
    width: 14px;
    height: 14px;
    border-radius: 100%;
    border: 2px solid #fff;
    background: var(--ch-accent);
    box-shadow: 0 0 0 3px rgba(162, 132, 219, 0.26);
}

.release-card h2 {
    margin-bottom: 0.7rem;
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.05em;
    color: #f8f9fa;
}

.release-card ul {
    margin: 0.4rem 0 0.4rem 1.2rem;
    padding: 0;
}

.release-card li {
    margin-bottom: 0.35rem;
    line-height: 1.45;
}

.release-card p,
.release-card strong,
.release-card code {
    color: var(--ch-text);
}

.release-card code {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.05rem 0.3rem;
}

@keyframes cardEnter {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .body-changelog {
        background-attachment: scroll;
    }

    .changelog-main {
        padding: 2.2rem 0.75rem 3rem;
    }

    .changelog-hero {
        padding: 1.2rem 1rem 1.5rem;
    }

    .changelog-timeline {
        padding-left: 1.45rem;
    }

    .changelog-timeline::before {
        left: 0.42rem;
    }

    .release-card {
        padding: 0.95rem;
    }

    .release-card::before {
        left: -1.29rem;
    }
}
