﻿:root {
    --container: 1200px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 8px 24px rgba(148, 163, 253, 0.18);
    --border: #e2e8f0;
    --border-soft: #e5e7eb;
    --text: #0f172a;
    --muted: #6b7280;
    --bg: #ffffff;
    --alt: #f8fafc;
    --primary: #2563eb;
    --primary-soft: #eff6ff;
    --primary-600: #1d4ed8;
    --primary-50: #eff6ff;
    --dark: #020817;
    --success: #10b981;
    --tag-bg: #f3f4ff;
}

/* Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(var(--container), 92%);
    margin-inline: auto;
}

/* Hero */

.hero-updates {
    background: linear-gradient(135deg,#0f172a 0%,#1e293b 100%);
    color: #fff;
    padding: 110px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero-updates::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 0 0, rgba(148, 163, 253, 0.08), transparent), radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.06), transparent);
        mix-blend-mode: screen;
        opacity: 0.8;
        pointer-events: none;
    }

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.5);
    color: #c7d2fe;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 14px;
}

    .badge i {
        color: #6366f1;
    }

.hero-updates h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4.2vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f9fafb;
}

.grad {
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin: 0;
    font-size: 0.98rem;
    color: #9ca3af;
}

/* Sections */

.section {
    padding: 70px 0;
}

    .section.alt {
        background: var(--alt);
    }

.section-sub {
    color: var(--muted);
}

/* Toolbar */

.updates-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.updates-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: #ffffff;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.18s ease;
}

    .filter-pill i {
        font-size: 0.8rem;
    }

    .filter-pill:hover {
        background: var(--primary-50);
        color: var(--primary-600);
        border-color: rgba(37, 99, 235, 0.4);
    }

    .filter-pill.active {
        background: linear-gradient(90deg, #2563eb, #6366f1);
        color: #ffffff;
        border-color: transparent;
        box-shadow: var(--shadow-soft);
    }

/* Search */

.updates-search {
    position: relative;
    min-width: 220px;
    max-width: 320px;
    flex: 1 1 220px;
}

    .updates-search input {
        width: 100%;
        padding: 10px 14px 10px 34px;
        border-radius: 999px;
        border: 1px solid var(--border-soft);
        background: #ffffff;
        font-size: 0.8rem;
        color: var(--text);
        outline: none;
        transition: all 0.18s ease;
    }

        .updates-search input::placeholder {
            color: #9ca3af;
        }

        .updates-search input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
        }

.search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    color: #9ca3af;
}

/* Updates grid */

#updates-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* Update card (bigger, modern) */

.update-card {
    position: relative;
    padding: 20px 18px 16px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.22s ease;
    cursor: pointer;
    min-height: 170px;
}

    .update-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
        border-color: rgba(129, 140, 248, 0.9);
    }

/* Headline */

.update-headline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.update-version {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-600);
}

.update-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    flex: 1 1 auto;
}

/* Meta */

.update-meta {
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
    align-items: center;
}

    .update-meta a {
        margin-left: auto;
        padding: 6px 14px;
        border-radius: 999px;
        background: var(--primary-soft);
        color: var(--primary-600);
        font-size: 0.78rem;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.18s ease;
    }

        .update-meta a i {
            font-size: 0.7rem;
        }

        .update-meta a:hover {
            background: var(--primary);
            color: #ffffff;
            box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
            transform: translateY(-1px);
        }

/* Summary */

.update-summary {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 4px 0 0;
}

/* Tags */

.update-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.update-tag {
    font-size: 0.64rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--tag-bg);
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

    .update-tag.major {
        background: #fef3c7;
        color: #92400e;
    }

    .update-tag.feature {
        background: #dcfce7;
        color: #166534;
    }

    .update-tag.modules {
        background: #e0f2fe;
        color: #075985;
    }

    .update-tag.fix {
        background: #fee2e2;
        color: #991b1b;
    }

/* Skeleton loading */

.skeleton {
    min-height: 170px;
    background: #f9fafb;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

    .skeleton::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(248, 250, 252, 0) 0%, rgba(226, 232, 240, 0.9) 40%, rgba(248, 250, 252, 0) 100% );
        animation: shimmer 1.2s infinite;
        pointer-events: none;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Load more */

.updates-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

    .button:hover {
        background: var(--primary-600);
        transform: translateY(-1px);
    }

.button-outline {
    background: #ffffff;
    color: var(--primary-600);
    border: 1px solid rgba(148, 163, 253, 0.9);
    box-shadow: none;
    padding-inline: 26px;
}

    .button-outline:hover {
        background: var(--primary-50);
        transform: translateY(-2px);
    }

/* Empty / error */

.hidden {
    display: none !important;
}

.updates-empty {
    text-align: center;
    margin-top: 24px;
    padding: 22px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px dashed #e5e7eb;
    color: var(--muted);
}

.empty-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    margin: 0 auto 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

    .empty-icon.error {
        background: #fef2f2;
        color: #ef4444;
    }

.updates-empty h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Support CTA */

.updates-support {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.updates-support-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-alt {
    background: #22c55e;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
}

    .button-alt:hover {
        background: #16a34a;
    }

/* Footer */

.site-footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 60px 0 30px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    margin-bottom: 16px;
}

.brand-logo {
    height: 60px;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 420px;
}

.footer-links h4 {
    color: #ffffff;
    margin: 0 0 12px;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
}

    .footer-links a:hover {
        color: #ffffff;
    }

.footer-bottom {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 14px;
}

    .footer-social a {
        color: #94a3b8;
        font-size: 1.2rem;
    }

        .footer-social a:hover {
            color: #ffffff;
        }

/* Responsive */

@media (max-width: 1024px) {
    #updates-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero-updates {
        padding: 90px 0 50px;
    }

    .updates-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .updates-search {
        max-width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 640px) {
    #updates-list {
        grid-template-columns: 1fr;
    }
}
