/* ====================================================
   d3l1r1um.com — Design System
   Dark, minimalist, elegante. Palette: #5d0a89 #ae00ff #ff00f9 #9a9a9b
   ==================================================== */

:root {
    /* Brand colors */
    --c-purple-deep:   #5d0a89;
    --c-purple-bright: #ae00ff;
    --c-fuchsia:       #ff00f9;
    --c-muted:         #9a9a9b;

    /* Derived / UI */
    --c-bg:            #0a0a0e;
    --c-surface:       #111118;
    --c-surface-2:     #18181f;
    --c-surface-3:     #22222d;
    --c-border:        #2a2a38;
    --c-border-light:  #3a3a4a;
    --c-text:          #e8e8f0;
    --c-text-muted:    #9a9a9b;
    --c-text-dim:      #6a6a7a;
    --c-success:       #22c55e;
    --c-error:         #ef4444;
    --c-warning:       #f59e0b;

    /* Gradients */
    --grad-brand:      linear-gradient(135deg, var(--c-purple-deep), var(--c-purple-bright));
    --grad-fuchsia:    linear-gradient(135deg, var(--c-purple-bright), var(--c-fuchsia));
    --grad-glow:       radial-gradient(ellipse at center, rgba(174,0,255,.15) 0%, transparent 70%);

    /* Spacing */
    --radius:   8px;
    --radius-lg: 14px;
    --shadow:   0 2px 8px rgba(0,0,0,.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.6);
    --glow:     0 0 20px rgba(174,0,255,.3);
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c-purple-bright); text-decoration: none; }
a:hover { color: var(--c-fuchsia); }
img { max-width: 100%; height: auto; }

/* ===================== LAYOUT ===================== */
.app-layout {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 120px);
}

.main-content { flex: 1; padding: 2rem; min-width: 0; }

/* ===================== HEADER ===================== */
.app-header {
    background: rgba(17,17,24,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: .75rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: -.02em;
    color: var(--c-text);
    flex-shrink: 0;
}
.logo:hover { color: var(--c-text); }

.logo-img { height: 32px; width: auto; }

.logo-text { font-size: 1.25rem; font-weight: 900; letter-spacing: -.03em; }
.logo-accent, .accent { color: var(--c-purple-bright); }

.header-nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--c-text-muted);
    padding: .4rem .75rem;
    border-radius: var(--radius);
    font-size: .9rem;
    transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--c-text); background: var(--c-surface-3); }
.nav-link.active { color: var(--c-purple-bright); }

.nav-admin { color: var(--c-fuchsia); }

.nav-user { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: .2s;
}

.mobile-nav {
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    padding: 1rem 2rem;
    display: none;
    flex-direction: column;
    gap: .5rem;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { color: var(--c-text-muted); padding: .4rem 0; border-bottom: 1px solid var(--c-border); }

/* ===================== FOOTER ===================== */
.app-footer {
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.footer-logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -.03em; }
.footer-tagline { color: var(--c-text-muted); font-size: .85rem; margin-top: .5rem; }
.footer-disclaimer { color: var(--c-text-dim); font-size: .75rem; margin-top: .5rem; line-height: 1.5; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-dim); margin-bottom: .75rem; }
.footer-col a { display: block; color: var(--c-text-muted); font-size: .875rem; margin-bottom: .4rem; }
.footer-col a:hover { color: var(--c-purple-bright); }

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
    font-size: .8rem;
    color: var(--c-text-dim);
}

/* ===================== SIDEBAR ===================== */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--c-surface);
    border-right: 1px solid var(--c-border);
    padding: 1.5rem;
    min-height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.sidebar a {
    display: block;
    padding: .45rem .75rem;
    border-radius: var(--radius);
    color: var(--c-text-muted);
    font-size: .875rem;
    transition: .15s;
    margin-bottom: .1rem;
}
.sidebar a:hover { background: var(--c-surface-3); color: var(--c-text); }
.sidebar a.active { background: rgba(174,0,255,.12); color: var(--c-purple-bright); font-weight: 600; }
.sidebar hr { border: none; border-top: 1px solid var(--c-border); margin: 1rem 0; }
.sidebar-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-text-dim);
    padding: .25rem .75rem;
    margin-top: .5rem;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.25rem;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--glow);
}
.btn-primary:hover { opacity: .88; color: #fff; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--c-border-light);
    color: var(--c-text-muted);
}
.btn-outline:hover { border-color: var(--c-purple-bright); color: var(--c-purple-bright); }

.btn-danger {
    background: var(--c-error);
    color: #fff;
}
.btn-danger:hover { opacity: .85; color: #fff; }

.btn-sm { padding: .3rem .8rem; font-size: .8rem; }
.btn-lg { padding: .75rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-link { background: none; border: none; color: var(--c-purple-bright); cursor: pointer; padding: 0; font-size: .85rem; }
.btn-link:hover { color: var(--c-fuchsia); }

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .4rem;
}

.input, .textarea, .select {
    width: 100%;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-text);
    padding: .55rem .85rem;
    font-size: .9rem;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--c-purple-bright);
    box-shadow: 0 0 0 3px rgba(174,0,255,.18);
}
.textarea { resize: vertical; min-height: 120px; }
.select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%239a9a9b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 10px; padding-right: 2rem; }
.select-sm { width: auto; padding: .3rem .6rem; }
.form-hint { font-size: .75rem; color: var(--c-text-dim); margin-top: .3rem; }

.form-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 640px;
}

/* ===================== ALERTS ===================== */
.alert {
    padding: .75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .9rem;
    border-left: 3px solid;
}
.alert-success { background: rgba(34,197,94,.1); border-color: var(--c-success); color: #86efac; }
.alert-error   { background: rgba(239,68,68,.1); border-color: var(--c-error); color: #fca5a5; }

/* ===================== BADGES ===================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.badge-type     { background: rgba(93,10,137,.35); color: #c87dff; border: 1px solid rgba(174,0,255,.3); }
.badge-category { background: rgba(255,0,249,.12); color: #ff77fd; border: 1px solid rgba(255,0,249,.25); }

.status-draft     { background: rgba(154,154,155,.15); color: var(--c-text-muted); }
.status-review    { background: rgba(245,158,11,.15); color: #fbbf24; }
.status-approved  { background: rgba(34,197,94,.15); color: #86efac; }
.status-published { background: rgba(174,0,255,.2); color: #c87dff; }
.status-archived  { background: rgba(100,116,139,.15); color: #94a3b8; }
.status-open      { background: rgba(174,0,255,.2); color: #c87dff; }
.status-in_progress { background: rgba(245,158,11,.15); color: #fbbf24; }
.status-resolved  { background: rgba(34,197,94,.15); color: #86efac; }
.status-closed    { background: rgba(100,116,139,.15); color: #94a3b8; }

/* ===================== LANDING ===================== */
.landing-hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-glow);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: .3rem 1rem;
    background: rgba(174,0,255,.15);
    border: 1px solid rgba(174,0,255,.3);
    border-radius: 20px;
    font-size: .8rem;
    color: var(--c-purple-bright);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 30%, var(--c-fuchsia));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--c-text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.hero-stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 900; color: var(--c-purple-bright); }
.stat-label { font-size: .75rem; color: var(--c-text-dim); text-transform: uppercase; letter-spacing: .06em; }

.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Marquee */
.landing-marquee {
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    overflow: hidden;
    padding: .75rem 0;
    background: var(--c-surface);
}
.marquee-track {
    display: flex;
    gap: 2rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.marquee-item { white-space: nowrap; color: var(--c-text-dim); font-size: .85rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--c-purple-bright); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { color: var(--c-text-muted); font-size: .9rem; }

.landing-cta-section {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--c-border);
}
.landing-cta-section h2 { font-size: 2rem; margin-bottom: .75rem; }
.landing-cta-section p { color: var(--c-text-muted); max-width: 500px; margin: 0 auto 2rem; }

/* ===================== ARTICLES ===================== */
.page-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header h1 { font-size: 1.75rem; font-weight: 800; }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.article-card:hover { border-color: var(--c-purple-deep); transform: translateY(-3px); box-shadow: var(--glow); }

.card-image { display: block; aspect-ratio: 16/9; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .card-image img { transform: scale(1.04); }

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.card-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.delirium-badge {
    font-size: .75rem;
    letter-spacing: .02em;
    color: var(--c-purple-bright);
}
.delirium-badge.delirium-5 { color: var(--c-fuchsia); }

.card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.card-title a { color: var(--c-text); }
.card-title a:hover { color: var(--c-purple-bright); }

.card-excerpt { color: var(--c-text-muted); font-size: .875rem; line-height: 1.5; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--c-border); }
.card-date { font-size: .75rem; color: var(--c-text-dim); }

/* Article full */
.article-full { max-width: 760px; margin: 0 auto; }

.article-header { margin-bottom: 1.5rem; }
.article-meta-top { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }

.article-title { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 900; line-height: 1.2; margin-bottom: .85rem; }
.article-chapeau,
.article-excerpt {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--c-text-muted);
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--c-purple-bright);
    padding-left: 1rem;
}

.article-cover-wrap { margin: 0 0 1.5rem; }
.article-cover { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16/9; object-fit: cover; display: block; }

/* 3. Verdetto + delirio */
.article-verdict-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    margin: 0 0 2rem;
}
.verdict-badge {
    flex: 1 1 200px;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.verdict-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-dim); }
.verdict-badge strong { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.verdict-falso { border-color: rgba(239,68,68,.45); }
.verdict-falso strong { color: #ef4444; }
.verdict-vero { border-color: rgba(34,197,94,.45); }
.verdict-vero strong { color: #22c55e; }
.verdict-fuorviante { border-color: rgba(245,158,11,.45); }
.verdict-fuorviante strong { color: #f59e0b; }
.verdict-satira { border-color: rgba(174,0,255,.45); }
.verdict-satira strong { color: var(--c-purple-bright); }

.delirium-meter {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: .35rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}
.delirium-caption { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-dim); margin-right: .4rem; }
.delirium-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border-light); }
.delirium-dot.active { background: var(--c-purple-bright); box-shadow: 0 0 6px var(--c-purple-bright); }
.delirium-label { font-size: .75rem; color: var(--c-text-muted); margin-left: .25rem; }

.section-heading {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .02em;
    margin: 0 0 1rem;
    color: var(--c-text);
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--c-border);
}

/* 4. Keypoints */
.article-keypoints {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 0 0 2.5rem;
}
.keypoints-list { display: grid; gap: 1rem; margin: 0; }
.kp-item { display: grid; gap: .35rem; padding: .85rem 0; border-bottom: 1px solid var(--c-border); }
.kp-item:last-child { border-bottom: 0; padding-bottom: 0; }
.kp-item dt {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-purple-bright);
    font-weight: 700;
}
.kp-item dd { margin: 0; color: var(--c-text); line-height: 1.6; }
.kp-credible dt { color: #f59e0b; }
.kp-not-credible dt { color: #22c55e; }

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--c-text);
    margin-bottom: 2.5rem;
}
.article-body h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--c-text); }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: var(--c-text); }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: .4rem; }
.article-body blockquote { border-left: 3px solid var(--c-purple-bright); padding: .75rem 1rem; margin: 1.5rem 0; background: var(--c-surface-2); color: var(--c-text-muted); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body figure { margin: 2rem 0; }
.article-body figcaption { font-size: .8rem; color: var(--c-text-dim); margin-top: .5rem; }
.article-body a { color: var(--c-purple-bright); text-decoration: underline; text-underline-offset: 2px; }

/* Fact check box */
.factcheck-box {
    background: var(--c-surface-2);
    border: 1px solid rgba(34,197,94,.3);
    border-left: 4px solid var(--c-success);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 2rem 0;
}
.factcheck-verdict { font-weight: 800; font-size: 1rem; color: var(--c-success); margin-bottom: .5rem; display: block; }
.factcheck-sources { margin-top: .75rem; padding-left: 1rem; }
.factcheck-sources li { font-size: .85rem; }
.factcheck-sources a { color: var(--c-purple-bright); }

/* 6. Take-away */
.article-takeaway {
    background: linear-gradient(135deg, rgba(93,10,137,.25), rgba(174,0,255,.08));
    border: 1px solid rgba(174,0,255,.35);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 0 0 2.5rem;
}
.article-takeaway p { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--c-text); }

/* 7. FAQ */
.article-faq { margin: 0 0 2.5rem; }
.faq-list { display: grid; gap: .5rem; }
.faq-item {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.15rem;
    font-weight: 700;
    color: var(--c-text);
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--c-purple-bright); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
    padding: 0 1.15rem 1.15rem;
    color: var(--c-text-muted);
    line-height: 1.65;
    border-top: 1px solid var(--c-border);
    padding-top: .85rem;
}

/* 8. Fonti */
.article-sources { margin: 0 0 2rem; }
.sources-list { margin: 0; padding-left: 1.25rem; color: var(--c-text-muted); }
.sources-list li { margin-bottom: .65rem; line-height: 1.5; }
.sources-list a { color: var(--c-purple-bright); }
.source-note { color: var(--c-text-dim); font-size: .9em; }

.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; }
.tag { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: 4px; padding: .25rem .7rem; font-size: .8rem; color: var(--c-text-muted); transition: .15s; }
.tag:hover { border-color: var(--c-purple-bright); color: var(--c-purple-bright); }

/* 10. Byline footer */
.article-byline-footer {
    border-top: 1px solid var(--c-border);
    padding-top: 1.25rem;
    margin: 2rem 0;
}
.byline-author { display: flex; align-items: center; gap: .85rem; color: var(--c-text-muted); font-size: .9rem; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline-dates { font-size: .8rem; color: var(--c-text-dim); margin-top: .2rem; }

/* Rating */
.article-rating { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 2rem 0; text-align: center; }
.rating-prompt { margin-bottom: 1rem; color: var(--c-text-muted); }
.rating-buttons { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.btn-reaction { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: 4px; padding: .5rem 1rem; color: var(--c-text-muted); cursor: pointer; transition: .15s; font-size: .85rem; }
.btn-reaction:hover, .btn-reaction.active { border-color: var(--c-purple-bright); color: var(--c-purple-bright); background: rgba(174,0,255,.1); }
.rating-stats { margin-top: 1rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.rating-count { font-size: .8rem; color: var(--c-text-dim); }

/* Social share */
.social-share { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 2rem 0; }
.social-share p { color: var(--c-text-muted); font-size: .875rem; }
.share-btn { padding: .4rem 1rem; border-radius: 4px; font-size: .8rem; font-weight: 600; border: 1px solid var(--c-border); color: var(--c-text-muted); transition: .15s; }
.share-btn:hover { color: var(--c-text); border-color: var(--c-text-muted); }

/* Related */
.related-articles { margin: 3rem 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.related-card { display: block; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: .2s; }
.related-card:hover { border-color: var(--c-purple-deep); }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-card span { display: block; padding: .6rem .75rem; font-size: .8rem; color: var(--c-text); }

/* Disclaimer */
.editorial-disclaimer { background: var(--c-surface-2); border: 1px solid var(--c-border-light); border-radius: var(--radius); padding: 1rem; font-size: .8rem; color: var(--c-text-dim); margin: 2rem 0; }

/* Search */
.search-form { display: flex; gap: .5rem; }
.search-input { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--radius); color: var(--c-text); padding: .5rem 1rem; font-size: .9rem; width: 300px; }
.search-input:focus { outline: none; border-color: var(--c-purple-bright); }
.search-info { color: var(--c-text-muted); margin-bottom: 1.5rem; }
.articles-list { display: flex; flex-direction: column; gap: 1rem; }
.article-list-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.25rem; }
.article-list-item h3 { margin-bottom: .4rem; }
.article-list-item a { color: var(--c-text); }
.article-list-item a:hover { color: var(--c-purple-bright); }
.article-list-item p { color: var(--c-text-muted); font-size: .875rem; }
.delirium-mini { color: var(--c-purple-bright); font-size: .8rem; }

.back-link { color: var(--c-text-muted); font-size: .875rem; }
.back-link:hover { color: var(--c-purple-bright); }

.empty-state { text-align: center; padding: 4rem; color: var(--c-text-muted); }

.pagination { display: flex; gap: 1rem; justify-content: center; margin-top: 3rem; }

/* ===================== COMMENTS ===================== */
.comments-section { margin-top: 3rem; }
.comments-section h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }

.comment-form { margin-bottom: 2rem; }
.comments-login-prompt { color: var(--c-text-muted); }
.comments-empty { color: var(--c-text-dim); }

.comment {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: .75rem;
}
.comment-reply { margin-left: 2rem; border-left: 2px solid var(--c-border); }
.comment-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; flex-wrap: wrap; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.comment-avatar-placeholder { width: 28px; height: 28px; border-radius: 50%; background: var(--c-purple-deep); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.comment-author { font-weight: 700; font-size: .875rem; }
.comment-time { font-size: .75rem; color: var(--c-text-dim); }
.comment-edited { font-size: .7rem; color: var(--c-text-dim); }
.comment-votes { display: flex; align-items: center; gap: .3rem; margin-left: auto; font-size: .8rem; }
.vote-btn { background: none; border: 1px solid var(--c-border); border-radius: 4px; color: var(--c-text-muted); cursor: pointer; padding: .1rem .4rem; transition: .15s; }
.vote-btn:hover { border-color: var(--c-purple-bright); color: var(--c-purple-bright); }
.vote-score { min-width: 20px; text-align: center; }

.comment-body { font-size: .9rem; line-height: 1.6; color: var(--c-text); }
.comment-actions { display: flex; gap: 1rem; margin-top: .5rem; }
.reply-form { margin-top: .75rem; background: var(--c-surface-2); border-radius: var(--radius); padding: 1rem; }
.comment-replies { margin-top: .75rem; }
.comments-list { max-width: 760px; }

/* ===================== FORUM ===================== */
.forum-header p { color: var(--c-text-muted); margin-top: .5rem; }
.forum-categories { display: flex; flex-direction: column; gap: 1rem; }
.forum-category-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; transition: .2s; }
.forum-category-card:hover { border-color: var(--c-purple-deep); }
.forum-cat-info h2 { font-size: 1.05rem; font-weight: 700; }
.forum-cat-info h2 a { color: var(--c-text); }
.forum-cat-info h2 a:hover { color: var(--c-purple-bright); }
.forum-cat-info p { color: var(--c-text-muted); font-size: .875rem; margin-top: .3rem; }
.forum-cat-stats { font-size: .8rem; color: var(--c-text-dim); text-align: right; }

.forum-threads { display: flex; flex-direction: column; gap: .5rem; }
.thread-row { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: center; }
.thread-row.pinned { border-color: rgba(174,0,255,.4); }
.pin-icon, .lock-icon { font-size: 1rem; flex-shrink: 0; }
.thread-info { flex: 1; min-width: 0; }
.thread-info h3 { font-size: .95rem; font-weight: 700; margin-bottom: .25rem; }
.thread-info h3 a { color: var(--c-text); }
.thread-info h3 a:hover { color: var(--c-purple-bright); }
.thread-meta { display: flex; gap: .75rem; font-size: .75rem; color: var(--c-text-dim); flex-wrap: wrap; }
.thread-stats { display: flex; gap: 1rem; font-size: .8rem; color: var(--c-text-dim); text-align: right; }

.thread-op { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.forum-post { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: .75rem; }
.post-author { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.post-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.post-avatar-placeholder { width: 32px; height: 32px; border-radius: 50%; background: var(--c-purple-deep); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; color: #fff; flex-shrink: 0; }
.post-content { font-size: .9rem; line-height: 1.7; white-space: pre-wrap; }

.forum-replies { margin-top: 2rem; }
.forum-replies h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--c-text-muted); }
.reply-form-wrap { margin-top: 2rem; }
.reply-form-wrap h3 { margin-bottom: 1rem; }
.login-prompt { color: var(--c-text-muted); }

/* ===================== TICKETS ===================== */
.support-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
.support-info { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.5rem; height: fit-content; }
.support-info h3 { margin-bottom: 1rem; }
.support-info ul { padding-left: 1.25rem; }
.support-info li { color: var(--c-text-muted); font-size: .875rem; margin-bottom: .5rem; }

.tickets-list { display: flex; flex-direction: column; gap: .75rem; }
.ticket-row { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.ticket-subject { font-weight: 700; color: var(--c-text); }
.ticket-subject:hover { color: var(--c-purple-bright); }
.ticket-meta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .4rem; font-size: .8rem; }

.ticket-thread { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.ticket-message { border-radius: var(--radius); padding: 1.25rem; max-width: 80%; }
.user-message { background: var(--c-surface-2); border: 1px solid var(--c-border); align-self: flex-start; }
.staff-message { background: rgba(93,10,137,.2); border: 1px solid rgba(174,0,255,.3); align-self: flex-end; }
.msg-header { display: flex; gap: .75rem; align-items: center; margin-bottom: .5rem; }
.msg-header strong { font-size: .875rem; }
.msg-header time { font-size: .75rem; color: var(--c-text-dim); }
.msg-body { font-size: .9rem; line-height: 1.6; }

/* ===================== ADMIN ===================== */
.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.admin-page-header h1 { font-size: 1.5rem; font-weight: 800; }
.header-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.filter-bar { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { background: var(--c-surface-2); border-bottom: 1px solid var(--c-border); padding: .6rem 1rem; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-muted); white-space: nowrap; }
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--c-surface-2); }

.sidebar-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1rem; }
.sidebar-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: 1rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* Article editor */
.article-form-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.article-form-main { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; }
.article-form-sidebar { position: sticky; top: 80px; }

.tab-bar { display: flex; background: var(--c-surface-2); border-bottom: 1px solid var(--c-border); }
.tab-btn { background: none; border: none; padding: .75rem 1.25rem; color: var(--c-text-muted); cursor: pointer; font-size: .875rem; font-weight: 600; transition: .15s; border-bottom: 2px solid transparent; display: flex; align-items: center; gap: .4rem; }
.tab-btn:hover { color: var(--c-text); }
.tab-btn.active { color: var(--c-purple-bright); border-bottom-color: var(--c-purple-bright); }
.translation-status { font-size: .65rem; padding: .15rem .4rem; border-radius: 10px; background: var(--c-surface-3); }

.tab-panel { display: none; padding: 1.5rem; }
.tab-panel.active { display: block; }

.editor-toolbar { display: flex; gap: .4rem; margin-bottom: .5rem; }
.editor-btn { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: 4px; color: var(--c-text-muted); cursor: pointer; padding: .3rem .6rem; font-size: .8rem; transition: .15s; }
.editor-btn:hover { border-color: var(--c-purple-bright); color: var(--c-purple-bright); }
.editor-area { min-height: 300px; background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1rem; outline: none; line-height: 1.7; font-size: .9rem; }
.editor-area:focus { border-color: var(--c-purple-bright); }

.seo-panel { margin-top: 1.5rem; }
.seo-panel summary { cursor: pointer; color: var(--c-text-muted); font-size: .875rem; font-weight: 600; padding: .5rem 0; }
.seo-panel > div { margin-top: 1rem; }

.delirium-picker { display: flex; gap: .5rem; flex-wrap: wrap; }
.delirium-option { cursor: pointer; font-size: .85rem; color: var(--c-text-dim); }
.delirium-option input { display: none; }
.delirium-option:has(input:checked) { color: var(--c-purple-bright); }

.form-section {
    margin: 0 0 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--c-border);
}
.form-section:last-child { border-bottom: 0; }
.form-section-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .95rem;
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--c-text);
}
.form-section-title span,
.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
    background: rgba(174,0,255,.18);
    color: var(--c-purple-bright);
    font-size: .75rem;
    font-weight: 800;
}
.input-lg { font-size: 1.15rem; font-weight: 700; padding: .85rem 1rem; }
.form-hint { display: block; margin-top: .35rem; font-size: .75rem; color: var(--c-text-dim); }

.verdict-picker { display: grid; gap: .4rem; }
.verdict-option {
    display: block;
    padding: .55rem .75rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    color: var(--c-text-muted);
}
.verdict-option input { display: none; }
.verdict-option:has(input:checked) { border-color: var(--c-purple-bright); color: var(--c-text); background: rgba(174,0,255,.1); }
.verdict-option.verdict-falso:has(input:checked) { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,.1); }
.verdict-option.verdict-vero:has(input:checked) { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,.1); }
.verdict-option.verdict-fuorviante:has(input:checked) { border-color: #f59e0b; color: #f59e0b; background: rgba(245,158,11,.1); }
.verdict-option.verdict-satira:has(input:checked) { border-color: var(--c-purple-bright); color: var(--c-purple-bright); }

.verdict-badge-sm {
    display: inline-block;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .2rem .45rem;
    border-radius: 4px;
    border: 1px solid var(--c-border);
}
.verdict-badge-sm.verdict-falso { color: #ef4444; border-color: rgba(239,68,68,.4); }
.verdict-badge-sm.verdict-vero { color: #22c55e; border-color: rgba(34,197,94,.4); }
.verdict-badge-sm.verdict-fuorviante { color: #f59e0b; border-color: rgba(245,158,11,.4); }
.verdict-badge-sm.verdict-satira { color: var(--c-purple-bright); border-color: rgba(174,0,255,.4); }

.repeater { display: grid; gap: .75rem; margin-bottom: .75rem; }
.repeater-row { display: grid; gap: .5rem; padding: .85rem; background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--radius); position: relative; }
.repeater-row .repeater-remove { justify-self: end; }
.repeater-row-sources { grid-template-columns: 1fr; }

.tag-selector { display: flex; flex-direction: column; gap: .4rem; max-height: 250px; overflow-y: auto; }
.tag-checkbox { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--c-text-muted); cursor: pointer; }
.tag-checkbox:hover { color: var(--c-text); }
.tag-checkbox input { accent-color: var(--c-purple-bright); }

.new-taxonomy-box { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--c-border); }
.new-taxonomy-box label { display: block; font-size: .75rem; color: var(--c-text-dim); margin-bottom: .35rem; }
.inline-create { display: flex; gap: .4rem; }
.inline-create .input { flex: 1; }

.media-preview { min-height: 80px; background: var(--c-surface-2); border: 1px dashed var(--c-border); border-radius: var(--radius); margin-bottom: .5rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-preview img { max-width: 100%; max-height: 160px; object-fit: cover; display: block; }
.media-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.media-modal[hidden] { display: none !important; }
.media-modal {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.65);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.media-modal-dialog {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 1.25rem;
}
.media-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.media-modal-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.media-tab-panel { display: none; }
.media-tab-panel.active { display: block; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.media-grid-item { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 0; cursor: pointer; overflow: hidden; aspect-ratio: 1; }
.media-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-grid-item:hover { border-color: var(--c-purple-bright); }

/* Media picker (esempio_csm) */
.media-picker-modal[hidden] { display: none !important; }
.media-picker-modal {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
}
.media-picker-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
}
.media-picker-container {
    position: relative;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    width: min(960px, 94vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.media-picker-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--c-border);
    display: flex; align-items: center; justify-content: space-between;
}
.media-picker-header h3 { margin: 0; font-size: 1.05rem; }
.media-picker-close {
    background: none; border: none; color: var(--c-text-muted);
    cursor: pointer; font-size: 1.1rem; padding: .35rem .5rem; border-radius: 6px;
}
.media-picker-close:hover { background: var(--c-surface-3); color: var(--c-text); }
.media-picker-tabs {
    display: flex; gap: .25rem;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--c-border);
}
.media-picker-tab {
    background: none; border: none; cursor: pointer;
    color: var(--c-text-muted); padding: .75rem 1rem;
    border-bottom: 2px solid transparent; font-size: .875rem;
}
.media-picker-tab.active { color: var(--c-purple-bright); border-bottom-color: var(--c-purple-bright); }
.media-picker-body {
    padding: 1.25rem;
    overflow: auto;
    flex: 1;
    min-height: 320px;
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: 1rem;
}
.media-picker-tab-content { display: none; grid-column: 1; }
.media-picker-tab-content.active { display: block; }
.media-picker-search { margin-bottom: 1rem; }
.media-picker-search input { width: 100%; }
.media-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}
.media-picker-item {
    border: 2px solid var(--c-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--c-surface-2);
    padding: 0;
    text-align: left;
    color: inherit;
}
.media-picker-item:hover { border-color: var(--c-purple); }
.media-picker-item.selected {
    border-color: var(--c-purple-bright);
    box-shadow: 0 0 0 2px rgba(174,0,255,.25);
}
.media-picker-item img { width: 100%; height: 120px; object-fit: cover; display: block; }
.media-picker-item-info { padding: .45rem .55rem; }
.media-picker-item-name { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-picker-item-meta { font-size: .68rem; color: var(--c-text-dim); }
.media-picker-upload-zone {
    border: 2px dashed var(--c-border);
    border-radius: 12px;
    padding: 3rem 1.25rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.media-picker-upload-zone.is-drag,
.media-picker-upload-zone:hover {
    border-color: var(--c-purple-bright);
    background: rgba(174,0,255,.06);
}
.media-picker-upload-zone .muted { font-size: .85rem; color: var(--c-text-dim); }
.media-picker-meta {
    grid-column: 2;
    grid-row: 1 / span 2;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: .85rem;
    font-size: .8rem;
    overflow: auto;
    max-height: 420px;
}
.media-picker-meta[hidden] { display: none !important; }
.media-picker-meta h4 { margin: 0 0 .75rem; font-size: .9rem; }
.media-meta-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem .6rem; }
.media-meta-dl dt { color: var(--c-text-dim); }
.media-meta-dl dd { margin: 0; word-break: break-word; }
.media-picker-footer {
    padding: .85rem 1.25rem;
    border-top: 1px solid var(--c-border);
    display: flex; justify-content: flex-end; gap: .6rem;
}

.article-unavailable {
    max-width: 640px;
    margin: 3rem auto;
    padding: 0 1rem;
}
.unavailable-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.unavailable-lead { color: var(--c-text-muted); }
.unavailable-ref { font-style: italic; color: var(--c-text-dim); }
.unavailable-langs { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: .75rem; }

@media (max-width: 768px) {
    .media-picker-body { grid-template-columns: 1fr; }
    .media-picker-meta { grid-column: 1; grid-row: auto; max-height: 220px; }
}

.article-podcast { margin: 0 0 2.5rem; }
.podcast-preview { margin-top: .75rem; }

/* Comment moderation */
.comments-moderation { display: flex; flex-direction: column; gap: 1rem; }
.mod-comment { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1rem; }
.mod-comment.high-spam { border-color: rgba(239,68,68,.4); }
.mod-comment-header { display: flex; gap: 1rem; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; }
.spam-score { font-size: .75rem; padding: .2rem .5rem; border-radius: 4px; background: rgba(239,68,68,.15); color: #fca5a5; }
.mod-comment-body { font-size: .875rem; color: var(--c-text-muted); margin-bottom: .75rem; }
.mod-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ===================== LOCALE SWITCHER ===================== */
.header-locale {
    margin-left: .5rem;
}
.header-locale .select-sm {
    min-width: 7.5rem;
    background: var(--c-surface-2);
    border-color: var(--c-border);
    color: var(--c-text);
}
.mobile-locale {
    margin-top: 1rem;
    padding: 0 1rem 1rem;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.locale-switcher { display: flex; align-items: center; gap: .5rem; }

/* ===================== UTILS ===================== */
.hidden-json { display: none !important; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .article-form-layout { grid-template-columns: 1fr; }
    .article-form-sidebar { position: static; }
    .support-layout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-inner { padding: .75rem 1rem; }
    .header-nav { display: none; }
    .nav-toggle { display: flex; }
    .main-content { padding: 1rem; }
    .sidebar { display: none; }
    .articles-grid { grid-template-columns: 1fr; }
    .landing-hero { padding: 3rem 1rem 2rem; }
    .hero-stats { gap: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .support-layout { grid-template-columns: 1fr; }
    .thread-stats { display: none; }
    .table-wrap { font-size: .8rem; }
    .footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
