/* =====================================================================
   CHANGELOG PAGE — changelog-page.css
   ===================================================================== */


/* HERO
   --------------------------------------------------------------------- */

.cl-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cl-hero .cl-hero__inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 0 25px;
}

.cl-hero .cl-hero__inner .cl-hero__badge {
    display: inline-block;
    padding: 6px 25px;
    border-radius: 50px;
    background: rgba(28, 145, 228, 0.08);
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cl-hero .cl-hero__inner .cl-hero__headline {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1.2;
    margin: 0;
}

.cl-hero .cl-hero__inner .cl-hero__subheadline {
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0;
}

.cl-hero .cl-hero__inner .cl-hero__stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 50px;
    border-radius: 25px;
    background: var(--color-surface);
    border: 1px solid rgba(28, 145, 228, 0.1);
    box-shadow: 0 10px 50px rgba(28, 145, 228, 0.08), 0 4px 25px rgba(15, 23, 42, 0.04);
    margin-top: 10px;
}

.cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28, 145, 228, 0.12) 0%, rgba(79, 190, 254, 0.06) 40%, transparent 70%);
    animation: clPulse 4s ease-in-out infinite;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes clPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
}

.cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-number {
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-label {
    font-size: 14px;
    color: var(--color-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-live .cl-hero__stat-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: clLivePulse 2s ease-in-out infinite;
}

@keyframes clLivePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}


/* TIMELINE SECTION
   --------------------------------------------------------------------- */

.cl-timeline {
    background: var(--color-surface);
    position: relative;
    z-index: 1;
    padding: 75px 0 50px;
}

.cl-timeline::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,80 720,0 1440,40 L1440,80 L0,80 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.cl-timeline .content-inner .cl-timeline__track {
    position: relative;
    padding-left: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.cl-timeline .content-inner .cl-timeline__track::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 18px;
    width: 2px;
    background: linear-gradient(180deg, rgba(28, 145, 228, 0.2) 0%, rgba(28, 145, 228, 0.05) 100%);
}


/* DATE GROUP
   --------------------------------------------------------------------- */

.cl-timeline .content-inner .cl-timeline__track .cl-date-group {
    padding-bottom: 25px;
}

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    position: relative;
}

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__header .cl-date-group__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-surface);
    box-shadow: 0 0 0 2px rgba(28, 145, 228, 0.3);
    position: absolute;
    left: -43px;
    flex-shrink: 0;
}

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__header .cl-date-group__date {
    font-weight: 700;
    color: var(--color-ink);
    font-size: 15px;
}

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__header .cl-date-group__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(28, 145, 228, 0.08);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
}


/* ENTRIES
   --------------------------------------------------------------------- */

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    transition: transform 200ms ease, box-shadow 200ms ease;
    opacity: 0;
    transform: translateY(10px);
}

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry.cl-entry--visible {
    opacity: 1;
    transform: translateY(0);
    transition: transform 400ms ease, box-shadow 200ms ease, opacity 400ms ease;
}

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}


/* ENTRY CATEGORY BORDERS */

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry.cl-entry--new { border-left-color: var(--color-accent); }

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry.cl-entry--improvement { border-left-color: var(--color-primary); }

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry.cl-entry--ai { border-left-color: var(--color-secondary); }

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry.cl-entry--integration { border-left-color: #10b981; }

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry.cl-entry--performance { border-left-color: #94a3b8; }


/* ENTRY HEADER */

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry .cl-entry__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}


/* CATEGORY TAGS */

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry .cl-entry__header .cl-entry__tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry .cl-entry__header .cl-entry__tag.cl-entry__tag--new { background: var(--color-accent); }

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry .cl-entry__header .cl-entry__tag.cl-entry__tag--improvement { background: var(--color-primary); }

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry .cl-entry__header .cl-entry__tag.cl-entry__tag--ai { background: var(--color-secondary); }

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry .cl-entry__header .cl-entry__tag.cl-entry__tag--integration { background: #10b981; }

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry .cl-entry__header .cl-entry__tag.cl-entry__tag--performance { background: #94a3b8; }


/* ENTRY CONTENT */

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry .cl-entry__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-ink);
    line-height: 1.5;
    margin: 0;
}

.cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry .cl-entry__desc {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 10px 0 0;
}


/* SCROLL REVEAL
   --------------------------------------------------------------------- */

.cl-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.cl-reveal.cl-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}


/* CTA SECTION
   --------------------------------------------------------------------- */

.cl-cta {
    background: var(--color-ink);
    position: relative;
    z-index: 1;
    padding: 75px 0;
}

.cl-cta::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,80 720,0 1440,40 L1440,80 L0,80 Z' fill='%230f172a'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.cl-cta .cl-cta__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 0 25px;
}

.cl-cta .cl-cta__inner .cl-cta__title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}

.cl-cta .cl-cta__inner .cl-cta__subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}


/* RESPONSIVE — TABLET (768px+)
   --------------------------------------------------------------------- */

@media (min-width: 768px) {

    .cl-hero .cl-hero__inner .cl-hero__headline {
        font-size: 36px;
    }

    .cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-number {
        font-size: 80px;
    }

    .cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-glow {
        width: 220px;
        height: 220px;
    }

    .cl-cta .cl-cta__inner .cl-cta__title {
        font-size: 32px;
    }

}


/* RESPONSIVE — DESKTOP (1024px+)
   --------------------------------------------------------------------- */

@media (min-width: 1024px) {

    .cl-hero .cl-hero__inner .cl-hero__headline {
        font-size: 42px;
    }

    .cl-hero .cl-hero__inner .cl-hero__subheadline {
        font-size: 16px;
    }

    .cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-number {
        font-size: 96px;
    }

    .cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-glow {
        width: 260px;
        height: 260px;
    }

    .cl-hero .cl-hero__inner .cl-hero__stat {
        padding: 50px;
    }

    .cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry {
        padding: 25px 50px;
    }

    .cl-cta .cl-cta__inner .cl-cta__title {
        font-size: 36px;
    }

}


/* RESPONSIVE — MOBILE (max 639px)
   --------------------------------------------------------------------- */

@media (max-width: 639px) {

    .cl-timeline .content-inner .cl-timeline__track {
        padding-left: 25px;
    }

    .cl-timeline .content-inner .cl-timeline__track::before {
        left: 6px;
    }

    .cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__header .cl-date-group__dot {
        width: 12px;
        height: 12px;
        left: -25px;
    }

    .cl-hero .cl-hero__inner .cl-hero__stat {
        padding: 25px;
    }

    .cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-number {
        font-size: 56px;
    }

    .cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-glow {
        width: 140px;
        height: 140px;
    }

    .cl-timeline::before {
        height: 50px;
        top: -49px;
    }

    .cl-cta::before {
        height: 50px;
        top: -49px;
    }

}


/* REDUCED MOTION
   --------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-glow {
        animation: none;
    }

    .cl-hero .cl-hero__inner .cl-hero__stat .cl-hero__stat-live .cl-hero__stat-live-dot {
        animation: none;
    }

    .cl-reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .cl-timeline .content-inner .cl-timeline__track .cl-date-group .cl-date-group__entries .cl-entry {
        transition: none;
        opacity: 1;
        transform: none;
    }

}


/* NOSCRIPT FALLBACK — add <noscript><style> in views to override opacity */
