﻿/* =========================================================
   ZIR / ŽIR — PROFESSIONAL / INSTITUTIONAL THEME
   Flat, neutral, serious (politics, economy, history)
   ========================================================= */

/* ---------- Typography ---------- */
:root {
    --font-serif: "Georgia", "Times New Roman", Times, serif;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
    --content-width: 720px;
}

/* ---------- Color System ---------- */
:root {
    --bg: #0f1115;
    --panel: #151821;
    --panel-2: #1b1f2a;
    --text: #e6e8ee;
    --muted: #9aa3b2;
    --accent: #3b6fd8;
    --border: #2a2f3d;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,.18);
    /* ŽIR editorial red (ONLY for diacritic) */
    --zir-red: #8b1d1d;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f4f5f7;
        --panel: #ffffff;
        --panel-2: #f8f9fb;
        --text: #121418;
        --muted: #5b6472;
        --accent: #2b5fd9;
        --border: #dfe3ea;
    }
}

/* ---------- Base Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-serif);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
}

/* ---------- Links ---------- */
a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        color: var(--accent);
    }

/* ---------- FULL WIDTH HEADER ---------- */
.site-header {
    width: 100%;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 1.6rem;
}

/* ---------- Brand ---------- */
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Base logo circle */
.brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================
   ŽIR LOGO — Z + PROBIJAJUĆI V
   =============================== */

.brand__logo--zir {
    position: relative;
    font-family: var(--font-sans);
    overflow: hidden;
}

    /* Base letter */
    .brand__logo--zir .zir-base {
        position: relative;
        z-index: 2;
    }

    /* Diacritic as geometric V */
    .brand__logo--zir .zir-caron {
        position: absolute;
        /* optical centering */
        top: -2px;
        left: 50%;
        transform: translateX(-50%) scaleX(1.05);
        width: 22px;
        height: 14px;
        border-left: 3px solid var(--zir-red);
        border-right: 3px solid var(--zir-red);
        border-bottom: 3px solid var(--zir-red);
        border-top: none;
        opacity: 0.9;
        z-index: 3;
        pointer-events: none;
    }

/* Brand text */
.brand__name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
}

.brand__tagline {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ---------- App Layout ---------- */
.app {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "sidebar main"
        "footer footer";
}

/* ---------- Sidebar ---------- */
.sidebar {
    grid-area: sidebar;
    /* prostor za marku gore + normalan sadržaj */
    padding: 96px 24px 40px 32px; /* ↑ veći top padding */
    border-right: 1px solid var(--border);
    /* ŽIR — secondary background mark */
    background-image: url("/img/zir-acorn.svg");
    background-repeat: no-repeat;
    background-position: left 32px top 32px;
    background-size: 55px auto;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .menu li {
        margin-bottom: 0.7rem;
    }

    .menu a {
        font-size: 0.9rem;
        line-height: 1.35;
        color: var(--muted);
    }

        .menu a[aria-current="page"] {
            color: var(--text);
            font-weight: 600;
            padding-left: 10px;
            position: relative;
        }

            .menu a[aria-current="page"]::before {
                content: "—";
                position: absolute;
                left: 0;
                color: var(--accent);
            }

/* ---------- Main Content ---------- */
.main {
    grid-area: main;
    padding: 36px 24px;
    display: flex;
    justify-content: center;
}

.content {
    width: 100%;
    max-width: var(--content-width);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    font-size: 0.95rem;
}

    .analysis-table th {
        text-align: left;
        font-weight: 600;
        border-bottom: 2px solid var(--border);
        padding: 0.6rem 0.4rem;
    }

    .analysis-table td {
        vertical-align: top;
        padding: 0.6rem 0.4rem;
        border-bottom: 1px solid var(--border);
    }

    .analysis-table .analysis-total td {
        border-top: 2px solid var(--border);
        font-size: 1rem;
    }



/* base: mobile first */
.article-mark {
    margin-bottom: 1.2rem;
}

    /* base: mobile first */
    .article-mark .zir-acorn {
        width: 36px; /* jasno vidljivo, ali ne dominira */
        height: auto;
        opacity: 0.6;
        display: block;
    }

/* tablet */
@media (min-width: 768px) {
    .article-mark .zir-acorn {
        width: 64px;
        opacity: 0.55;
    }
}

/* desktop / large screens */
@media (min-width: 1200px) {
    .article-mark .zir-acorn {
        width: 96px; /* ≈ 3x u odnosu na mobitel */
        opacity: 0.5;
    }
}

/* ---------- Editorial Rhythm ---------- */
article section {
    margin-bottom: 2.8rem;
}

p {
    margin: 0 0 1.05rem;
}

ul, ol {
    margin: 0.6rem 0 1.2rem 1.3rem;
}

li {
    margin-bottom: 0.4rem;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.0rem;
    margin: 2.6rem 0 1.2rem;
}

h2 {
    font-size: 1.6rem;
    margin: 2.4rem 0 1rem;
}

h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.8rem;
}

h4 {
    font-size: 1.1rem;
    margin: 1.8rem 0 0.6rem;
}

h5 {
    font-size: 0.95rem;
    margin: 1.4rem 0 0.4rem;
}

/* ---------- Emphasis ---------- */
strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* ---------- Highlight Section ---------- */
.section--highlight {
    background: var(--panel-2);
    padding: 1.4rem 1.8rem;
    border-left: 4px solid var(--accent);
    margin: 2.4rem 0;
}

/* =========================================================
   FOOTER — EDITORIAL / COLOPHON
   ========================================================= */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--panel);
    margin-top: 4rem;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.6rem 2rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-meta,
.footer-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .footer-links a {
        color: var(--muted);
    }

        .footer-links a:hover {
            color: var(--text);
        }

.footer-sep {
    opacity: 0.5;
}


/* ---------- Tables (optional) ---------- */
.table-wrap {
    overflow-x: auto;
    margin: 2.2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.4rem;
        border-bottom: 1px solid var(--border);
    }

/* ---------- Dark mode article tuning ---------- */
@media (prefers-color-scheme: dark) {
    article p,
    article li {
        color: #d6d6d6;
    }

    article strong,
    article em {
        color: #ffffff;
    }
}

.section-number {
    display: inline-block;
    min-width: 2.2em;
    font-weight: 700;
}


.spiegel-table-wrapper {
    overflow-x: auto;
    margin: 1.5em 0;
    font-family: Arial, Helvetica, sans-serif;
}

.spiegel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.4;
}

    .spiegel-table thead th {
        text-align: left;
        font-weight: 700;
        padding: 10px 8px;
        border-bottom: 3px solid #000;
    }

    .spiegel-table tbody td {
        padding: 10px 8px;
        border-bottom: 1px solid #ddd;
    }

    .spiegel-table tbody tr:last-child td {
        border-bottom: 3px solid #000;
        font-weight: 700;
    }

    .spiegel-table td:first-child {
        font-weight: 600;
    }

/* Mobile layout */
@media (max-width: 768px) {
    .spiegel-table thead {
        display: none;
    }

    .spiegel-table,
    .spiegel-table tbody,
    .spiegel-table tr,
    .spiegel-table td {
        display: block;
        width: 100%;
    }

        .spiegel-table tr {
            margin-bottom: 1.5em;
            border-bottom: 2px solid #000;
            padding-bottom: 0.5em;
        }

        .spiegel-table td {
            padding: 6px 0;
            border: none;
        }

            .spiegel-table td::before {
                content: attr(data-label);
                display: block;
                font-size: 12px;
                color: #666;
                text-transform: uppercase;
                margin-bottom: 2px;
            }

            .spiegel-table td:first-child::before {
                display: none;
            }
}