/* Updates / Changelog Page Styles */
/* Follows the CastKeeper dark theme from style.css */

/* ── Page Layout ──────────────────────────────────── */
.updates-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 140px 24px 100px;
    min-height: 100vh;
}

/* ── Header ───────────────────────────────────────── */
.updates-header {
    margin-bottom: 72px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-subtle);
}

.updates-header h1 {
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 16px;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.updates-header .header-meta {
    font-size: 16px;
    color: var(--text-tertiary);
    line-height: 1.6;
    max-width: 540px;
}

/* ── Feed ─────────────────────────────────────────── */
.updates-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Post ─────────────────────────────────────────── */
.update-post {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0 40px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.update-post:last-child {
    border-bottom: none;
}

/* Vertical timeline line */
.update-post:not(:last-child) .update-date-col::after {
    content: '';
    position: absolute;
    left: 140px;
    top: 80px;
    bottom: -1px;
    width: 1px;
    background: var(--border-subtle);
    transform: translateX(-50%);
}

/* ── Date Column ──────────────────────────────────── */
.update-date-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 40px;
    padding-top: 4px;
    position: relative;
    border-right: 1px solid var(--border-subtle);
}

.update-date-dot {
    position: absolute;
    right: -6px;
    top: 10px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 12px var(--glow-primary);
    flex-shrink: 0;
}

.update-date-col time {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: right;
}

/* ── Content Column ───────────────────────────────── */
.update-content {
    padding-left: 0;
}

/* Tag / type badges */
.update-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.update-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.update-tag.new-feature {
    background: rgba(139, 92, 246, 0.15);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.update-tag.improvement {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.update-tag.bug-fix {
    background: rgba(16, 185, 129, 0.12);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.update-tag.announcement {
    background: rgba(245, 158, 11, 0.12);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.update-tag.beta {
    background: rgba(236, 72, 153, 0.12);
    color: #F472B6;
    border: 1px solid rgba(236, 72, 153, 0.22);
}

.update-tag.release {
    background: rgba(249, 115, 22, 0.12);
    color: #FB923C;
    border: 1px solid rgba(249, 115, 22, 0.22);
}

/* Version badge */
.update-version {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Title */
.update-content h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Body copy */
.update-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.update-content p:last-of-type {
    margin-bottom: 0;
}

/* Changelog list (optional structured list inside a post) */
.update-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.update-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.update-list li .list-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    margin-top: 8px;
    opacity: 0.7;
}

/* Links inside post content */
.update-content a,
.update-callout a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.update-content a:hover,
.update-callout a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Highlight callout box */
.update-callout {
    background: rgba(139, 92, 246, 0.07);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 20px 0;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.update-callout strong {
    color: var(--text-primary);
}

/* ── Empty state ──────────────────────────────────── */
.updates-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
}

/* ── Page footer note ─────────────────────────────── */
.updates-footer-note {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.updates-footer-note a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.updates-footer-note a:hover {
    color: var(--text-primary);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 640px) {
    .updates-container {
        padding: 120px 20px 72px;
    }

    .update-post {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 36px 0;
    }

    .update-date-col {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        border-right: none;
        border-bottom: none;
        padding-right: 0;
        padding-bottom: 0;
    }

    .update-date-dot {
        position: static;
        flex-shrink: 0;
    }

    .update-post:not(:last-child) .update-date-col::after {
        display: none;
    }

    .update-content h2 {
        font-size: 20px;
    }
}
