/* fps2.de — Clean Modern Flat Design with Abstract Accents */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #0c0c10;
    --bg-surface: #13131a;
    --bg-elevated: #1a1a24;
    --bg-hover: #1e1e2a;
    --border: rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.1);
    --text: #eeeef2;
    --text-2: #b4b4c8;
    --text-3: #7a7a92;
    --text-4: #4e4e64;
    /* Accent system: violet primary, cyan secondary, rose tertiary */
    --v: #8b5cf6;
    --v-light: #a78bfa;
    --v-dim: rgba(139,92,246,0.12);
    --v-glow: rgba(139,92,246,0.08);
    --c: #22d3ee;
    --c-dim: rgba(34,211,238,0.10);
    --r: #fb7185;
    --r-dim: rgba(251,113,133,0.10);
    --g: #34d399;
    --g-dim: rgba(52,211,153,0.10);
    --y: #fbbf24;
    --radius: 16px;
    --radius-s: 10px;
    --radius-xs: 6px;
    --shadow: 0 2px 20px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.35);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: var(--v-light); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--c); }
::selection { background: rgba(139,92,246,0.3); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* =============== ABSTRACT DECORATIVE SHAPES =============== */
.shape-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.shape-1 { width: 400px; height: 400px; background: rgba(139,92,246,0.06); top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: rgba(34,211,238,0.04); bottom: -50px; left: -50px; }
.shape-3 { width: 250px; height: 250px; background: rgba(251,113,133,0.04); top: 50%; left: 60%; }

/* =============== NAVIGATION =============== */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(12,12,16,0.85);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text) !important;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.nav-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--v), var(--c));
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.nav-logo-dot { color: var(--v-light); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1.5rem;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-xs);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-3) !important;
    transition: all 0.15s var(--ease);
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.nav-item:hover { color: var(--text) !important; background: var(--bg-elevated); }
.nav-item.active { color: var(--v-light) !important; background: var(--v-dim); }
.nav-admin { color: var(--c) !important; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn svg { transition: transform 0.2s; }
.nav-dropdown.open .nav-dropdown-btn svg { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s var(--ease);
    min-width: 380px;
    z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.nav-dropdown-grid a {
    display: block;
    padding: 0.5rem 0.65rem;
    font-size: 0.84rem;
    color: var(--text-2) !important;
    border-radius: var(--radius-xs);
    transition: all 0.15s;
}

.nav-dropdown-grid a:hover {
    background: var(--v-dim);
    color: var(--text) !important;
}

/* Search */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.nav-search-input {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    width: 180px;
    outline: none;
    transition: all 0.2s var(--ease);
}
.nav-search-input::placeholder { color: var(--text-4); }
.nav-search-input:focus {
    border-color: var(--v);
    box-shadow: 0 0 0 3px var(--v-dim);
    width: 240px;
}

/* Burger (mobile) */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: all 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(3px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(3px, -5px); }

/* =============== MAIN LAYOUT (Reader) =============== */
.main-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 56px);
}

/* =============== SIDEBAR =============== */
.sidebar {
    position: sticky;
    top: 72px;
    height: fit-content;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-4);
    font-weight: 700;
    margin-bottom: 0.6rem;
    padding: 0 0.6rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-xs);
    color: var(--text-3) !important;
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.15s var(--ease);
    margin-bottom: 1px;
}
.sidebar-link:hover { background: var(--bg-elevated); color: var(--text) !important; }
.sidebar-link.active { background: var(--v-dim); color: var(--v-light) !important; }
.sidebar-icon { font-size: 0.95rem; }
.sidebar-favicon { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.sidebar-count {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-4);
    background: var(--bg);
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
}

/* =============== CONTENT =============== */
.content { min-width: 0; }

.feed-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.feed-header h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.3rem; }
.feed-description { color: var(--text-2); margin-bottom: 0.6rem; }
.feed-header-meta { display: flex; align-items: center; gap: 1rem; color: var(--text-4); font-size: 0.84rem; }

/* =============== ITEMS GRID =============== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.item-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s var(--ease);
    position: relative;
}

.item-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.item-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-elevated);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.item-card:hover .item-image img { transform: scale(1.04); }

.item-body { padding: 1.1rem 1.2rem; }

.item-source {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--v-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.item-source-icon { width: 14px; height: 14px; border-radius: 3px; }

.item-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.4rem; }
.item-title a { color: var(--text) !important; }
.item-title a:hover { color: var(--v-light) !important; }

.item-excerpt { font-size: 0.85rem; color: var(--text-3); line-height: 1.55; margin-bottom: 0.7rem; }

.item-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-4);
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
}
.item-short-url {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    opacity: 0.4;
}

/* =============== BUTTONS =============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border: none;
    border-radius: var(--radius-s);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--v);
    color: #fff;
}
.btn-primary:hover { background: #7c3aed; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,92,246,0.3); }
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-2);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); color: var(--text); }
.btn-danger { background: var(--r-dim); color: var(--r); border: 1px solid rgba(251,113,133,0.15); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.btn-full { width: 100%; }

/* =============== FORMS =============== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.84rem; color: var(--text-2); margin-bottom: 0.3rem; font-weight: 600; }

input[type="text"], input[type="password"], input[type="url"], input[type="email"], textarea, select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-s);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--v); box-shadow: 0 0 0 3px var(--v-dim); }
.form-hint { display: block; font-size: 0.75rem; color: var(--text-4); margin-top: 0.25rem; }
.form-input { width: 100%; }
.input-group { display: flex; gap: 0.6rem; }
.input-group input { flex: 1; }

/* =============== ALERTS =============== */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius-s); margin-bottom: 1.5rem; font-size: 0.88rem; font-weight: 500; }
.alert-success { background: var(--g-dim); border: 1px solid rgba(52,211,153,0.2); color: var(--g); }
.alert-error { background: var(--r-dim); border: 1px solid rgba(251,113,133,0.2); color: var(--r); }

/* =============== CARDS / STATS (admin) =============== */
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.card-actions { margin-bottom: 1.5rem; }

.stats-bar { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; flex: 1; text-align: center; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: var(--v-light); letter-spacing: -0.03em; }
.stat-label { font-size: 0.72rem; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* =============== ADMIN =============== */
.admin-main { padding-top: 2rem; padding-bottom: 3rem; max-width: 900px; }
.feed-admin-item { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; border-bottom: 1px solid var(--border); gap: 1rem; }
.feed-admin-item:last-child { border-bottom: none; }
.feed-inactive { opacity: 0.4; }
.feed-admin-info { display: flex; align-items: flex-start; gap: 0.65rem; flex: 1; min-width: 0; }
.feed-favicon { width: 22px; height: 22px; border-radius: 5px; margin-top: 2px; flex-shrink: 0; }
.feed-admin-info h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.15rem; }
.feed-admin-info h3 a { color: var(--text) !important; }
.feed-meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--text-4); flex-wrap: wrap; word-break: break-all; }
.feed-permalink { font-size: 0.75rem; color: var(--text-4); margin-top: 0.2rem; }
.feed-permalink code { background: var(--bg); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.7rem; border: 1px solid var(--border); }
.feed-admin-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }
.badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 10px; font-size: 0.68rem; font-weight: 600; }
.badge-muted { background: var(--bg); color: var(--text-4); border: 1px solid var(--border); }
.cron-info { color: var(--text-2); margin-bottom: 0.5rem; font-size: 0.88rem; }
.cron-example { color: var(--text-4); margin: 0.6rem 0 0.25rem; font-size: 0.84rem; }
.cron-url { display: block; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 0.6rem 0.9rem; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--v-light); word-break: break-all; margin-bottom: 0.4rem; }

/* =============== PAGINATION =============== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.page-info { color: var(--text-4); font-size: 0.84rem; font-weight: 500; }

/* =============== EMPTY STATE =============== */
.empty-state { text-align: center; padding: 5rem 2rem; color: var(--text-3); }
.empty-icon { font-size: 3rem; margin-bottom: 0.8rem; }
.empty-state h2 { color: var(--text); font-weight: 700; margin-bottom: 0.4rem; }

/* =============== LOGIN =============== */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; position: relative; overflow: hidden; }
.login-container { width: 100%; max-width: 400px; padding: 2rem; position: relative; z-index: 1; }
.login-card { background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 2.5rem 2rem; }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-header h1 { font-size: 2.5rem; margin-bottom: 0.2rem; }
.login-header h2 { font-size: 1.2rem; font-weight: 700; }
.login-header p { color: var(--text-4); font-size: 0.88rem; }
.login-form { margin-bottom: 1.5rem; }
.back-link { display: block; text-align: center; color: var(--text-4) !important; font-size: 0.84rem; }

/* =============== BREADCRUMBS =============== */
.breadcrumb { margin-bottom: 1.2rem; }
.breadcrumb ol { display: flex; list-style: none; gap: 0; flex-wrap: wrap; }
.breadcrumb li { font-size: 0.8rem; color: var(--text-4); display: flex; align-items: center; }
.breadcrumb li::after { content: '›'; margin: 0 0.5rem; color: var(--text-4); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb li a { color: var(--text-3); }
.breadcrumb li a:hover { color: var(--v-light); }
.breadcrumb-current { color: var(--text-2); font-weight: 500; }

/* =============== LANDING / CATEGORY PAGES =============== */
.landing-main {
    max-width: 960px;
    padding-top: 2rem;
    padding-bottom: 4rem;
    position: relative;
}

.landing-header {
    margin-bottom: 3rem;
    padding: 2.5rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

/* Abstract accent bar */
.landing-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--v), var(--c));
    border-radius: 2px;
}

.landing-header h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

.landing-intro { font-size: 1.05rem; line-height: 1.75; color: var(--text-2); max-width: 700px; }

.landing-stats { display: flex; gap: 0.8rem; margin-top: 1.3rem; flex-wrap: wrap; }
.landing-stat {
    background: var(--v-dim);
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    color: var(--v-light);
    font-weight: 600;
}
a.rss-feed-btn {
    background: rgba(34,211,238,0.08);
    border-color: rgba(34,211,238,0.2);
    color: var(--c) !important;
    transition: all 0.2s var(--ease);
    cursor: pointer;
}
a.rss-feed-btn:hover {
    background: rgba(34,211,238,0.15);
    border-color: rgba(34,211,238,0.35);
}

.landing-section { margin-bottom: 3rem; }
.landing-section h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.1rem; letter-spacing: -0.02em; }

/* Category Grid — flat colored cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.category-card {
    display: block;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    transition: all 0.2s var(--ease);
    position: relative;
    overflow: hidden;
}

/* Colored top accent per card */
.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--v);
    opacity: 0;
    transition: opacity 0.2s;
}

.category-card:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.category-card:hover::after { opacity: 1; }

.category-card h3, .category-card h2 { font-size: 0.95rem; font-weight: 700; color: var(--text) !important; margin-bottom: 0.25rem; }
.category-card p { font-size: 0.8rem; color: var(--text-4); line-height: 1.5; }

.category-grid-lg { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.category-card-lg { padding: 1.5rem; }
.category-card-lg h2 { font-size: 1.05rem; }

/* Feed Directory */
.feed-directory { display: grid; gap: 0.6rem; }
.feed-dir-card { display: flex; align-items: flex-start; gap: 0.8rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; transition: all 0.15s; }
.feed-dir-card:hover { background: var(--bg-elevated); border-color: var(--border-strong); }
.feed-dir-icon { width: 26px; height: 26px; border-radius: 6px; margin-top: 2px; flex-shrink: 0; }
.feed-dir-card h3 { font-size: 0.92rem; font-weight: 600; color: var(--text) !important; margin-bottom: 0.15rem; }
.feed-dir-card p { font-size: 0.8rem; color: var(--text-3); line-height: 1.5; }
.feed-dir-count { font-size: 0.72rem; color: var(--v-light); font-weight: 600; }

/* FAQ */
.faq-list { display: grid; gap: 0.4rem; }
.faq-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-s); overflow: hidden; }
.faq-item[open] { border-color: rgba(139,92,246,0.2); }
.faq-question {
    padding: 1rem 1.1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before { content: '+'; color: var(--v-light); font-size: 1.1rem; font-weight: 700; flex-shrink: 0; width: 20px; text-align: center; }
details[open] .faq-question::before { content: '−'; }
details[open] .faq-question { color: var(--v-light); }
.faq-answer { padding: 0 1.1rem 1rem 2.6rem; font-size: 0.88rem; color: var(--text-3); line-height: 1.7; }

/* Content Section */
.content-section h2 { margin-top: 2rem; color: var(--text); }
.content-section p { font-size: 0.93rem; color: var(--text-2); line-height: 1.8; margin-bottom: 1rem; }
.content-section p strong { color: var(--text); }
.content-section a { color: var(--v-light); text-decoration: underline; text-underline-offset: 3px; }

/* =============== ARTICLE DETAIL =============== */
.article-main { max-width: 800px; padding-top: 2rem; padding-bottom: 4rem; }
.article-detail { margin-bottom: 3rem; }
.article-header { margin-bottom: 1.5rem; }
.article-source { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--v-light); margin-bottom: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.article-header h1 { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.25; margin-bottom: 0.7rem; }
.article-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; color: var(--text-4); flex-wrap: wrap; }
.article-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; max-height: 400px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-content { font-size: 1rem; line-height: 1.85; color: var(--text-2); margin-bottom: 2rem; }
.article-content p { margin-bottom: 1rem; }
.article-content h2, .article-content h3 { color: var(--text); margin: 1.5rem 0 0.6rem; font-weight: 700; }
.article-content a { color: var(--v-light); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { max-width: 100%; border-radius: var(--radius-s); margin: 1rem 0; }
.article-content blockquote { border-left: 3px solid var(--v); padding: 0.6rem 1rem; margin: 1rem 0; color: var(--text-3); font-style: italic; background: var(--v-glow); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; }
.article-footer { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.article-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.article-short-link { font-size: 0.8rem; color: var(--text-4); }
.article-short-link code { background: var(--bg); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; color: var(--v-light); border: 1px solid var(--border); font-family: 'JetBrains Mono', monospace; }
.related-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-section h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; }

/* =============== LEGAL PAGES =============== */
.legal-main { max-width: 800px; padding-top: 2rem; padding-bottom: 4rem; }
.legal-content h1 { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 0.3rem; }
.legal-content .legal-subtitle { color: var(--text-4); font-size: 0.88rem; margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.legal-content h2 { font-size: 1.15rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 0.6rem; color: var(--text); }
.legal-content h3 { font-size: 1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.4rem; color: var(--text-2); }
.legal-content p { font-size: 0.9rem; color: var(--text-2); line-height: 1.8; margin-bottom: 0.7rem; }
.legal-content ul, .legal-content ol { margin: 0.4rem 0 0.8rem 1.5rem; color: var(--text-2); font-size: 0.9rem; line-height: 1.8; }
.legal-content li { margin-bottom: 0.2rem; }
.legal-content a { color: var(--v-light); text-decoration: underline; text-underline-offset: 3px; }
.legal-content strong { color: var(--text); }

/* =============== FOOTER =============== */
.footer {
    border-top: 1px solid var(--border-strong);
    padding: 2.5rem 0 2rem;
    background: var(--bg-surface);
    position: relative;
}

/* Abstract shape in footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--v), var(--c), var(--r));
    border-radius: 2px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 3rem;
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.84rem; color: var(--text-3); line-height: 1.6; }

.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col h4 { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-4); font-weight: 700; margin-bottom: 0.6rem; }
.footer-col a { display: block; font-size: 0.84rem; color: var(--text-3); padding: 0.2rem 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--v-light); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--text-4); font-size: 0.78rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-3); font-size: 0.78rem; }
.footer-bottom-links a:hover { color: var(--v-light); }

/* Legacy simple footer */
.footer-seo { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-3); font-size: 0.8rem; }
.footer-links a:hover { color: var(--v-light); }

/* =============== COOKIE BANNER =============== */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 2rem));
    z-index: 9999;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    max-width: 620px;
    width: calc(100% - 2rem);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s var(--ease);
}
.cookie-banner.visible { transform: translateX(-50%) translateY(0); }

.cookie-inner { display: flex; align-items: center; gap: 1.2rem; }
.cookie-text { flex: 1; font-size: 0.85rem; color: var(--text-2); line-height: 1.5; }
.cookie-text a { color: var(--v-light); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-s);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}
.cookie-btn-accept { background: var(--v); color: #fff; }
.cookie-btn-accept:hover { background: #7c3aed; }
.cookie-btn-reject { background: var(--bg-surface); color: var(--text-3); border: 1px solid var(--border); }
.cookie-btn-reject:hover { color: var(--text); border-color: var(--border-strong); }

/* =============== SCROLLBAR =============== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

/* =============== RESPONSIVE =============== */
@media (max-width: 768px) {
    .main-layout { grid-template-columns: 1fr; gap: 0; }
    .sidebar {
        position: fixed; top: 0; left: -300px; width: 280px; height: 100vh;
        background: var(--bg-surface); border-right: 1px solid var(--border);
        z-index: 200; padding: 1.5rem 1rem; padding-top: 4rem;
        transition: left 0.3s var(--ease); overflow-y: auto;
    }
    .sidebar-open { left: 0; }

    .nav-menu { display: none; position: absolute; top: 56px; left: 0; right: 0;
        background: var(--bg-surface); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 0.5rem; }
    .nav-menu.open { display: flex; }
    .nav-dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible;
        border: none; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; background: transparent; display: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-burger { display: flex; }

    .items-grid { grid-template-columns: 1fr; }
    .search-input, .nav-search-input { width: 140px; }
    .nav-search-input:focus { width: 180px; }
    .stats-bar { flex-direction: column; gap: 0.6rem; }
    .input-group { flex-direction: column; }
    .landing-header h1 { font-size: 1.5rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-columns { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 0.6rem; text-align: center; }
    .cookie-inner { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; justify-content: center; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .item-body { padding: 0.9rem; }
    .category-grid { grid-template-columns: 1fr; }
    .nav-dropdown-grid { grid-template-columns: 1fr; }
}
