/* Changelog v6 — Regalo-inspired dark timeline design */

/* ===== STATUS PILL ===== */
.cl-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #64748b);
    margin: 0 auto 24px;
    display: flex;
    width: fit-content;
}
.cl-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.4);
}

/* ===== HERO (list page) ===== */
.cl-hero {
    text-align: center;
    padding: 40px 20px 32px;
    margin-bottom: 40px;
}
.cl-hero__title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text, #0f172a);
    margin: 0 0 12px;
    letter-spacing: -1px;
}
.cl-hero__sub {
    font-size: 16px;
    color: var(--muted, #64748b);
    margin: 0 auto 28px;
    max-width: 520px;
    line-height: 1.6;
}
.cl-hero__stats {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.cl-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 22px;
    border-radius: 16px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    min-width: 80px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cl-hero-stat:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.cl-hero-stat__value { font-size: 24px; font-weight: 800; color: var(--text, #0f172a); line-height: 1; }
.cl-hero-stat--new .cl-hero-stat__value { color: #8b5cf6; }
.cl-hero-stat--fix .cl-hero-stat__value { color: #f59e0b; }
.cl-hero-stat__label { font-size: 11px; font-weight: 600; color: var(--muted, #64748b); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

/* ===== TIMELINE (list page) ===== */
.cl-timeline {
    max-width: 720px;
    margin: 0 auto;
}
.cl-release {
    margin-bottom: 48px;
    animation: clSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--cl-delay, 0ms);
}
.cl-release__date-label {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}
.cl-release__date-label time {
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #0f172a);
}
.cl-release__ver-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted, #94a3b8);
}
.cl-release__card {
    display: flex;
    gap: 0;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.cl-release__card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-3px);
}

/* Cover image */
.cl-release__cover {
    width: 280px;
    min-height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.cl-release__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.cl-release__card:hover .cl-release__cover img { transform: scale(1.05); }
.cl-release__cover--placeholder {
    background: linear-gradient(135deg, hsl(var(--cl-hue, 280), 60%, 15%) 0%, hsl(calc(var(--cl-hue, 280) + 40), 50%, 20%) 100%);
    position: relative;
    overflow: hidden;
}
.cl-release__cover-pattern {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 40%, hsla(var(--cl-hue, 280), 70%, 50%, 0.15) 50%, transparent 60%),
        linear-gradient(225deg, transparent 40%, hsla(calc(var(--cl-hue, 280) + 60), 60%, 45%, 0.12) 50%, transparent 60%),
        radial-gradient(circle at 70% 30%, hsla(var(--cl-hue, 280), 80%, 60%, 0.1) 0%, transparent 50%);
}

/* Info section */
.cl-release__info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.cl-release__latest {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(52,211,153,0.06));
    color: #059669;
    margin-bottom: 8px;
    width: fit-content;
}
.cl-release__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #0f172a);
    margin: 0 0 6px;
    line-height: 1.35;
    letter-spacing: -0.3px;
}
.cl-release__summary {
    font-size: 14px;
    color: var(--muted, #64748b);
    margin: 0 0 12px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cl-release__readmore {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary, #0ea5e9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}
.cl-release__readmore i { font-size: 11px; transition: transform 0.2s ease; }
.cl-release__card:hover .cl-release__readmore i { transform: translateX(3px); }

/* Tags (shared) */
.cl-release__tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
}
.cl-release__tag--major { background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(239,68,68,0.05)); color: #dc2626; }
.cl-release__tag--minor { background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(14,165,233,0.05)); color: #0284c7; }
.cl-release__tag--patch { background: rgba(148,163,184,0.1); color: var(--muted, #64748b); }
.cl-release__tag--hotfix { background: rgba(245,158,11,0.1); color: #d97706; }

/* No results */
.cl-no-results { text-align: center; padding: 60px 20px; color: var(--muted, #64748b); }
.cl-no-results i { font-size: 48px; color: var(--border, #e2e8f0); margin-bottom: 16px; display: block; }
.cl-no-results h3 { font-size: 18px; font-weight: 700; color: var(--text, #0f172a); margin: 0 0 6px; }
.cl-no-results p { font-size: 14px; margin: 0; }

/* ===== DETAIL PAGE ===== */
.cld-hero {
    position: relative;
    padding: 40px 0 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.cld-hero__cover {
    width: 100%;
    max-height: 360px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 28px;
}
.cld-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.cld-hero__content { max-width: 640px; }
.cld-hero__title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text, #0f172a);
    margin: 0 0 12px;
    letter-spacing: -0.8px;
    line-height: 1.2;
}
.cld-hero__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.cld-hero__version {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #64748b);
}
.cld-hero__date {
    font-size: 14px;
    color: var(--muted, #64748b);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.cld-hero__date i { font-size: 14px; opacity: 0.6; }
.cld-hero__summary {
    font-size: 16px;
    color: var(--muted, #64748b);
    line-height: 1.6;
    margin: 0;
}
.cld-back {
    position: absolute;
    top: 40px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #64748b);
    text-decoration: none;
    transition: color 0.2s ease;
}
.cld-back:hover { color: var(--primary, #0ea5e9); }

/* Detail sections (featured with body/image) */
.cld-section {
    margin-bottom: 40px;
    padding: 28px;
    border-radius: 18px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
}
.cld-section__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sec-color, #8b5cf6);
    margin-bottom: 10px;
}
.cld-section__label i { font-size: 12px; }
.cld-section__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text, #0f172a);
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}
.cld-section__body {
    font-size: 15px;
    color: var(--text, #0f172a);
    line-height: 1.7;
    margin-bottom: 16px;
}
.cld-section__body:last-child { margin-bottom: 0; }
.cld-section__image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border, #e2e8f0);
}
.cld-section__image img { width: 100%; display: block; }

/* Detail grouped list */
.cld-group { margin-bottom: 28px; }
.cld-group:last-child { margin-bottom: 0; }
.cld-group__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text, #0f172a);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cld-group__icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--sec-color, #8b5cf6) 12%, transparent);
    color: var(--sec-color, #8b5cf6);
}
.cld-group__count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(148,163,184,0.08);
    color: var(--muted, #64748b);
    margin-left: auto;
}
.cld-list { list-style: none; padding: 0; margin: 0; }
.cld-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 10px;
    transition: background 0.15s ease;
    margin-bottom: 2px;
}
.cld-list li:hover { background: rgba(148,163,184,0.05); }
.cld-list__bullet { width: 6px; height: 6px; border-radius: 50%; opacity: 0.5; flex-shrink: 0; margin-top: 7px; }
.cld-list__text { font-size: 15px; color: var(--text, #0f172a); line-height: 1.55; }

/* Detail navigation */
.cld-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border, #e2e8f0);
}
.cld-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 14px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    min-width: 140px;
}
.cld-nav__link:hover { border-color: var(--primary, #0ea5e9); box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-1px); }
.cld-nav__link i { font-size: 14px; color: var(--muted, #64748b); }
.cld-nav__label { font-size: 11px; font-weight: 600; color: var(--muted, #64748b); text-transform: uppercase; letter-spacing: 0.04em; display: block; }
.cld-nav__title { font-size: 14px; font-weight: 700; color: var(--text, #0f172a); display: block; }
.cld-nav__link--next { text-align: right; margin-left: auto; }

/* ===== ANIMATIONS ===== */
@keyframes clSlideIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== DARK THEME ===== */
.theme-dark .cl-status-pill { background: var(--surface); border-color: var(--border); }
.theme-dark .cl-hero__title { color: var(--text); }
.theme-dark .cl-hero-stat { background: var(--surface); border-color: var(--border); }
.theme-dark .cl-hero-stat:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.theme-dark .cl-hero-stat__value { color: var(--text); }
.theme-dark .cl-hero-stat--new .cl-hero-stat__value { color: #a78bfa; }
.theme-dark .cl-hero-stat--fix .cl-hero-stat__value { color: #fbbf24; }
.theme-dark .cl-release__date-label time { color: var(--text); }
.theme-dark .cl-release__card { background: var(--surface); border-color: var(--border); }
.theme-dark .cl-release__card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.15); }
.theme-dark .cl-release__title { color: var(--text); }
.theme-dark .cl-release__latest { background: rgba(52,211,153,0.1); color: #34d399; }
.theme-dark .cl-release__tag--major { background: rgba(239,68,68,0.1); color: #f87171; }
.theme-dark .cl-release__tag--minor { background: rgba(56,189,248,0.1); color: #38bdf8; }
.theme-dark .cl-release__readmore { color: #38bdf8; }
.theme-dark .cl-no-results i { color: var(--border); }
.theme-dark .cl-no-results h3 { color: var(--text); }
.theme-dark .cld-hero { border-bottom-color: var(--border); }
.theme-dark .cld-hero__title { color: var(--text); }
.theme-dark .cld-back:hover { color: #38bdf8; }
.theme-dark .cld-section { background: var(--surface); border-color: var(--border); }
.theme-dark .cld-section__title { color: var(--text); }
.theme-dark .cld-section__body { color: var(--text); }
.theme-dark .cld-section__image { border-color: var(--border); }
.theme-dark .cld-group__title { color: var(--text); }
.theme-dark .cld-list li:hover { background: rgba(148,163,184,0.04); }
.theme-dark .cld-list__text { color: var(--text); }
.theme-dark .cld-nav__link { background: var(--surface); border-color: var(--border); }
.theme-dark .cld-nav__link:hover { border-color: #38bdf8; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.theme-dark .cld-nav__title { color: var(--text); }

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