/* Clear Report / Чистый Доклад */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111;
    --bg-card: #161616;
    --border: #222;
    --border-hover: #333;
    --text: #ccc;
    --text-secondary: #888;
    --text-muted: #555;
    --text-heading: #e8e8e8;
    --accent: #b33;
    --accent-dim: rgba(187, 51, 51, 0.12);
    --tag-confirmed: #2a9d5c;
    --tag-confirmed-bg: rgba(42, 157, 92, 0.12);
    --tag-claimed: #d4a017;
    --tag-claimed-bg: rgba(212, 160, 23, 0.12);
    --tag-unverified: #c0392b;
    --tag-unverified-bg: rgba(192, 57, 43, 0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text-heading); }

/* Links inside article body — clearly visible */
.article-body a {
    color: #c97070;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(201, 112, 112, 0.4);
}
.article-body a:hover {
    color: #dd9090;
    text-decoration-color: rgba(221, 144, 144, 0.7);
}

/* ── Header ─────────────────────────────────────────────────── */

.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.logo .accent { color: var(--accent); }

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav a:hover, .nav a.active { color: var(--text-heading); }

.lang-switch {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.lang-switch a {
    display: block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.15s;
}

.lang-switch a:hover { color: var(--text); background: var(--bg-card); }
.lang-switch a.active { color: var(--text-heading); background: var(--border); }

/* ── AI Disclaimer Banner ───────────────────────────────────── */

.ai-banner {
    background: var(--accent-dim);
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 2rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: center;
}

.ai-banner a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Container ──────────────────────────────────────────────── */

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.container-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* ── Card Grid ──────────────────────────────────────────────── */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    justify-content: center;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.card:hover { border-color: var(--border-hover); }

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: var(--bg-secondary);
}

.card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.card-img-placeholder:empty, .card-img-placeholder:blank {
    display: none;
}

.card-body { padding: 1.2rem; }

.card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--accent); }

.card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.card-meta {
    margin-top: 0.8rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-meta .source { color: var(--text-secondary); }

/* ── Verification Tags ──────────────────────────────────────── */

.tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.tag-confirmed { background: var(--tag-confirmed-bg); color: var(--tag-confirmed); }
.tag-claimed { background: var(--tag-claimed-bg); color: var(--tag-claimed); }
.tag-unverified { background: var(--tag-unverified-bg); color: var(--tag-unverified); }

/* ── Article Page ───────────────────────────────────────────── */

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.article-body {
    font-size: 0.92rem;
    line-height: 1.75;
}

.article-body h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 2rem 0 0.8rem;
}

.article-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 1.5rem 0 0.6rem;
}

.article-body p { margin-bottom: 1rem; }

.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.6rem 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 0 4px 4px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.article-body th, .article-body td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    text-align: left;
}

.article-body th {
    background: var(--bg-secondary);
    color: var(--text-heading);
    font-weight: 600;
}

.article-body img {
    max-width: 100%;
    border-radius: 4px;
    margin: 1rem 0;
}

/* ── Sources Block ──────────────────────────────────────────── */

.sources {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.sources h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
}

.sources ul {
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sources li {
    padding: 0.2rem 0;
}

.sources a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sources a:hover { color: var(--text); }

/* ── Disclaimer Block ───────────────────────────────────────── */

.disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--accent-dim);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── About / Methodology Page ───────────────────────────────── */

.about-section {
    margin-bottom: 2.5rem;
}

.about-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.about-section p {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.prompt-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.2rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.78rem;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-x: auto;
    color: var(--text-secondary);
    max-height: 600px;
    overflow-y: auto;
}

/* ── Footer ─────────────────────────────────────────────────── */

.footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1.5rem 2rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: auto;
}

.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--text); }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
    .header { padding: 0.6rem 1rem; }
    .container, .container-narrow { padding: 1.2rem; }
    .grid { grid-template-columns: 1fr; }
    .header-right { gap: 0.8rem; }
    .nav a { font-size: 0.8rem; }
    .article-header h1 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.05rem; }
    .nav a { margin-left: 0.8rem; }
    .card-img, .card-img-placeholder { height: 140px; }
}
