/* ==========================================================================
   THE MELS LIVE — RELEASE CHANGELOGS & VERSION HISTORY STYLESHEET
   ========================================================================== */

:root {
    --bg-dark: #0b0f19;
    --bg-card: #151d2f;
    --bg-card-hover: #1c263d;
    --bg-header: rgba(11, 15, 25, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --accent-amber: #f59e0b;
    --accent-cyan: #38bdf8;
    --accent-rose: #f43f5e;
    --accent-purple: #a855f7;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body.changelogs-body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.changelogs-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-group {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.plumbob-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
    animation: plumbobFloat 3s ease-in-out infinite alternate;
}

@keyframes plumbobFloat {
    from { transform: translateY(0px) rotate(0deg); }
    to { transform: translateY(-4px) rotate(6deg); }
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Search Box */
.header-search-box {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.header-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-dim);
    pointer-events: none;
}

.header-search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 10px 40px;
    font-size: 0.88rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    outline: none;
    transition: all 0.2s ease;
}

.header-search-box input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}

.clear-search-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px;
}

/* Header Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.guide-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 20px;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: all 0.2s ease;
}

.play-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    filter: brightness(1.1);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.changelogs-main {
    padding: 40px 24px 80px 24px;
}

.changelogs-container {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Hero Section */
.changelogs-hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(56, 189, 248, 0.05), var(--bg-card));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 760px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Filter Tabs */
.filter-tabs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.filter-tab.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* ==========================================================================
   TIMELINE CARDS
   ========================================================================== */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.changelog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.changelog-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.card-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.version-badges-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.version-pill {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 12px;
    border-radius: 8px;
}

.version-pill.current-version {
    background: linear-gradient(135deg, var(--primary), #059669);
    border-color: #34d399;
    box-shadow: 0 0 14px var(--primary-glow);
}

.tag-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag-major {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.tag-live {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.tag-feature {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.tag-fix {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.tag-multiplayer {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.release-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.card-headline {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 12px;
}

.card-summary {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

/* Change Groups */
.changelog-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.change-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.badge-type {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.badge-new {
    background: #10b981;
    color: #000;
}

.badge-fix {
    background: #f43f5e;
    color: #fff;
}

.badge-polish {
    background: #a855f7;
    color: #fff;
}

.badge-multiplayer {
    background: #f59e0b;
    color: #000;
}

.changes-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.changes-list li {
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.changes-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: 800;
    position: absolute;
    left: 4px;
    top: 0;
}

.changes-list ul {
    margin-top: 6px;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.changes-list a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.changes-list a:hover {
    text-decoration: underline;
}

code {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-amber);
}

kbd {
    display: inline-block;
    background: #1e293b;
    border: 1px solid #475569;
    border-bottom: 2px solid #334155;
    border-radius: 6px;
    padding: 2px 7px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-amber);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.changelogs-footer {
    background: #0e1422;
    border-top: 1px solid var(--border-color);
    padding: 48px 24px 24px 24px;
    margin-top: 40px;
}

.footer-container {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    margin-left: 8px;
}

.footer-desc {
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 440px;
}

.links-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links-col h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.links-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s;
}

.links-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 980px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .changelogs-header {
        padding: 12px 16px;
    }

    .changelogs-hero {
        padding: 24px 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .changelog-card {
        padding: 22px 18px;
    }

    .card-headline {
        font-size: 1.25rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
