/* ================================================================
   Changelog — changelog.css
   ================================================================ */

/* ── Shared helpers ───────────────────────────────────────────── */
.section-eyebrow {
    display: inline-flex; align-items: center;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #4f46e5; background: #ede9fe;
    padding: 0.25rem 0.85rem; border-radius: 20px;
    margin-bottom: 0.85rem;
}

.section-header {
    text-align: center; max-width: 600px; margin: 0 auto 3rem;
}

.section-title {
    font-size: 2rem; font-weight: 900; color: #111827;
    letter-spacing: -0.5px; margin-bottom: 0.75rem; line-height: 1.2;
}

.section-desc {
    font-size: 1rem; color: #6b7280; line-height: 1.7; margin: 0;
}

/* ── Tag system ───────────────────────────────────────────────── */
.cl-tag {
    display: inline-flex; align-items: center;
    font-size: 0.72rem; font-weight: 700;
    padding: 0.2rem 0.6rem; border-radius: 20px;
    white-space: nowrap; letter-spacing: 0.02em;
}

.cl-tag.feature     { background: #dbeafe; color: #1e40af; }
.cl-tag.pro         { background: #ede9fe; color: #4f46e5; }
.cl-tag.improvement { background: #d1fae5; color: #065f46; }
.cl-tag.fix         { background: #fee2e2; color: #991b1b; }
.cl-tag.agent       { background: #fef3c7; color: #92400e; }

/* Small variant */
.cl-tag.sm {
    font-size: 0.65rem; padding: 0.15rem 0.45rem;
    flex-shrink: 0;
}

.cl-tag.mt-2 { margin-top: 0.5rem; }

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.cl-hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(160deg, #fafafe 0%, #f0f0ff 60%, #fafafe 100%);
    text-align: center;
    position: relative; overflow: hidden;
}

.cl-hero-orb {
    position: absolute; border-radius: 50%;
    pointer-events: none; filter: blur(80px); opacity: 0.3;
}

.orb-a {
    width: 380px; height: 380px;
    background: #c4b5fd; top: -120px; right: -80px;
}

.orb-b {
    width: 220px; height: 220px;
    background: #a5b4fc; bottom: -60px; left: -50px;
}

.cl-hero-inner {
    position: relative; z-index: 1;
    max-width: 640px; margin: 0 auto;
}

.cl-hero-title {
    font-size: 2.8rem; font-weight: 900;
    color: #111827; letter-spacing: -1px;
    line-height: 1.15; margin-bottom: 1rem;
}

.cl-hero-accent {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cl-hero-desc {
    font-size: 1.05rem; color: #6b7280;
    line-height: 1.7; margin-bottom: 2rem;
}

/* Meta pills */
.cl-hero-meta {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: 0.65rem;
}

.cl-meta-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.78rem; font-weight: 600;
    padding: 0.3rem 0.85rem; border-radius: 20px;
    border: 1.5px solid;
}

.cl-meta-pill.version {
    background: #ede9fe; border-color: #c4b5fd; color: #4f46e5;
}

.cl-meta-pill.date {
    background: #f9fafb; border-color: #e5e7eb; color: #6b7280;
}

.cl-meta-pill.agent {
    background: #fef3c7; border-color: #fde68a; color: #92400e;
}

.cl-meta-pill.web {
    background: #dbeafe; border-color: #93c5fd; color: #1e40af;
}

/* ════════════════════════════════════════════════════════════════
   FILTER BAR
   ════════════════════════════════════════════════════════════════ */
.cl-filter-bar-wrap {
    position: sticky; top: 64px; z-index: 50;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1.5px solid #f3f4f6;
    padding: 0.75rem 0;
}

.cl-filter-bar {
    display: flex; align-items: center;
    gap: 0.75rem; flex-wrap: wrap;
}

.cl-filter-label {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: #9ca3af; flex-shrink: 0;
}

.cl-filter-tabs {
    display: flex; align-items: center;
    gap: 0.4rem; flex-wrap: wrap;
}

.cl-filter-tab {
    background: none; border: none;
    padding: 0.3rem 0.75rem; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600;
    color: #6b7280; cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: inline-flex; align-items: center; gap: 0.3rem;
}

.cl-filter-tab:hover { background: #f3f4f6; color: #111827; }

.cl-filter-tab.active {
    background: #111827; color: #fff;
}

.cl-filter-tab.active .cl-tag {
    /* keep tag colors visible on dark bg */
    opacity: 0.9;
}

/* ════════════════════════════════════════════════════════════════
   TIMELINE
   ════════════════════════════════════════════════════════════════ */
.cl-timeline-section {
    padding: 4rem 0 3rem;
    background: #fff;
}

.cl-timeline {
    display: flex; flex-direction: column;
    gap: 0; max-width: 860px; margin: 0 auto;
}

/* ── Entry ────────────────────────────────────────────────────── */
.cl-entry {
    display: grid;
    grid-template-columns: 120px 32px 1fr;
    gap: 0 1.25rem;
    padding-bottom: 2.5rem;
    transition: opacity 0.2s;
}

/* Aside */
.cl-entry-aside {
    text-align: right; padding-top: 0.2rem;
}

.cl-version-badge {
    display: inline-block;
    font-size: 0.78rem; font-weight: 800;
    padding: 0.25rem 0.65rem; border-radius: 8px;
    background: #f3f4f6; color: #374151;
    margin-bottom: 0.35rem; letter-spacing: 0.02em;
}

.cl-version-badge.latest {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

.cl-version-badge.patch {
    background: #fee2e2; color: #991b1b;
}

.cl-version-badge.launch {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
}

.cl-entry-date {
    font-size: 0.72rem; color: #9ca3af;
    font-weight: 500; margin-bottom: 0.2rem;
}

.cl-entry-label {
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: #4f46e5;
}

.cl-entry-label.launch { color: #059669; }

/* Connector */
.cl-entry-connector {
    display: flex; flex-direction: column;
    align-items: center; padding-top: 0.3rem;
}

.cl-connector-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: #e5e7eb; border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
    flex-shrink: 0; z-index: 1;
}

.cl-connector-dot.latest {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 0 0 3px #ede9fe;
    width: 16px; height: 16px;
}

.cl-connector-dot.launch {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 0 0 3px #d1fae5;
    width: 16px; height: 16px;
}

.cl-connector-line {
    flex: 1; width: 2px;
    background: linear-gradient(180deg, #e5e7eb 0%, #f3f4f6 100%);
    margin-top: 4px;
}

.cl-connector-line.last { background: transparent; }

/* Card */
.cl-entry-card {
    background: #f9fafb;
    border: 1.5px solid #f3f4f6;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.cl-entry-card:hover {
    box-shadow: 0 4px 20px rgba(79,70,229,0.08);
    border-color: #e0e7ff;
}

.cl-entry-card.launch-card {
    border-color: #a7f3d0;
    background: linear-gradient(135deg, #f0fdf4, #f9fafb);
}

/* Card header */
.cl-entry-header {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 1rem;
    padding: 1.25rem 1.5rem 0.85rem;
    border-bottom: 1.5px solid #f3f4f6;
    flex-wrap: wrap;
}

.cl-entry-title {
    font-size: 0.95rem; font-weight: 800;
    color: #111827; margin: 0; line-height: 1.35;
    flex: 1;
}

.cl-entry-tags {
    display: flex; align-items: center;
    gap: 0.35rem; flex-wrap: wrap; flex-shrink: 0;
}

/* Card body */
.cl-entry-body {
    padding: 1.1rem 1.5rem 1.25rem;
    display: flex; flex-direction: column; gap: 1.1rem;
}

/* Change groups */
.cl-change-group-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: #6b7280; margin-bottom: 0.65rem;
}

.cl-change-group-title i { font-size: 0.85rem; }
.cl-change-group-title i.new         { color: #4f46e5; }
.cl-change-group-title i.improvement { color: #059669; }
.cl-change-group-title i.fix         { color: #dc2626; }

/* Change list */
.cl-change-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.55rem;
}

.cl-change-list li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    font-size: 0.82rem; color: #374151; line-height: 1.55;
}

.cl-change-list li code {
    font-size: 0.75rem; background: #f3f4f6;
    padding: 0.1rem 0.35rem; border-radius: 4px;
    color: #374151;
}

/* ════════════════════════════════════════════════════════════════
   ROADMAP
   ════════════════════════════════════════════════════════════════ */
.cl-roadmap-section {
    padding: 5rem 0;
    background: linear-gradient(160deg, #fafafe 0%, #f0f0ff 60%, #fafafe 100%);
}

.cl-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.cl-roadmap-item {
    background: #fff;
    border: 1.5px solid #f3f4f6;
    border-radius: 16px;
    padding: 1.25rem;
    display: flex; flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.cl-roadmap-item:hover {
    box-shadow: 0 4px 16px rgba(79,70,229,0.08);
    border-color: #c4b5fd;
}

/* Status badge */
.cl-roadmap-status {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem; border-radius: 20px;
    margin-bottom: 1rem; align-self: flex-start;
}

.cl-roadmap-status.planned {
    background: #ede9fe; color: #4f46e5;
}

.cl-roadmap-status.considering {
    background: #fef3c7; color: #92400e;
}

.cl-roadmap-status i { font-size: 0.65rem; }

/* Icon */
.cl-roadmap-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: #f3f4f6; color: #6b7280;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: 0.85rem;
}

.cl-roadmap-item.planned .cl-roadmap-icon {
    background: #ede9fe; color: #4f46e5;
}

.cl-roadmap-item.considering .cl-roadmap-icon {
    background: #fef3c7; color: #d97706;
}

.cl-roadmap-title {
    font-size: 0.875rem; font-weight: 700;
    color: #111827; margin-bottom: 0.4rem;
}

.cl-roadmap-desc {
    font-size: 0.78rem; color: #6b7280;
    line-height: 1.6; flex: 1;
}

/* Roadmap note */
.cl-roadmap-note {
    text-align: center;
    font-size: 0.82rem; color: #6b7280;
    display: flex; align-items: center;
    justify-content: center; gap: 0.4rem;
    flex-wrap: wrap;
}

.cl-roadmap-note i { color: #4f46e5; }
.cl-roadmap-note a {
    color: #4f46e5; text-decoration: none; font-weight: 600;
}
.cl-roadmap-note a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════════════════════════════ */
.cl-final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    text-align: center;
    position: relative; overflow: hidden;
}

.cl-final-orb {
    position: absolute;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -150px; right: -80px; pointer-events: none;
}

.cl-final-inner {
    position: relative; z-index: 1;
    max-width: 540px; margin: 0 auto;
}

.cl-final-icon {
    width: 68px; height: 68px; border-radius: 18px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff;
    margin: 0 auto 1.5rem;
}

.cl-final-title {
    font-size: 2.2rem; font-weight: 900;
    color: #fff; letter-spacing: -0.5px;
    line-height: 1.2; margin-bottom: 1rem;
}

.cl-final-desc {
    font-size: 1rem; color: rgba(255,255,255,0.8);
    line-height: 1.7; margin-bottom: 2rem;
}

.cl-final-buttons {
    display: flex; justify-content: center;
    gap: 0.85rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}

.btn-cl-primary {
    display: inline-flex; align-items: center;
    background: #fff; color: #4f46e5;
    text-decoration: none;
    font-size: 0.95rem; font-weight: 700;
    padding: 0.75rem 1.5rem; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: opacity 0.15s, transform 0.1s;
}

.btn-cl-primary:hover {
    opacity: 0.92; transform: translateY(-1px); color: #4f46e5;
}

.btn-cl-ghost {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,0.12); color: #fff;
    text-decoration: none;
    font-size: 0.95rem; font-weight: 600;
    padding: 0.75rem 1.5rem; border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: background 0.15s;
}

.btn-cl-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }

.cl-final-links {
    display: flex; align-items: center;
    justify-content: center; gap: 0.6rem; flex-wrap: wrap;
}

.cl-final-links a {
    font-size: 0.8rem; color: rgba(255,255,255,0.65);
    text-decoration: none; font-weight: 500;
    transition: color 0.15s;
}

.cl-final-links a:hover { color: #fff; }
.cl-final-links span { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .cl-hero-title   { font-size: 2rem; }
    .cl-final-title  { font-size: 1.7rem; }
    .section-title   { font-size: 1.6rem; }
    .cl-roadmap-grid { grid-template-columns: repeat(2, 1fr); }

    .cl-entry {
        grid-template-columns: 90px 24px 1fr;
        gap: 0 0.85rem;
    }

    .cl-entry-aside  { font-size: 0.78rem; }
    .cl-entry-header { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 540px) {
    .cl-entry {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .cl-entry-aside {
        display: flex; align-items: center;
        gap: 0.5rem; text-align: left;
        grid-column: 1; grid-row: 1;
    }

    .cl-entry-connector { display: none; }

    .cl-entry-card {
        grid-column: 1; grid-row: 2;
        margin-bottom: 1.5rem;
    }

    .cl-roadmap-grid     { grid-template-columns: 1fr; }
    .cl-final-buttons    { flex-direction: column; align-items: center; }
    .btn-cl-primary,
    .btn-cl-ghost        { width: 100%; justify-content: center; }
    .cl-filter-bar       { gap: 0.5rem; }
}
