/* public-shared.css — dijeljeni stil za javne stranice.
   Bazni dio (header/nav/lang-switcher) izvučen iz public/header.php.
   Zajedničke komponente (page-hero, card, accordion, itd.) dodaju se ovdje
   dok se otkrivaju u pojedinačnim stranicama — prati isti obrazac kao
   admin/modules/vijesti/css/vijesti.css. */

:root {
    --navy: #002B5C;
    --gold: #ffd700;
    --legacy-blue: #007ACC;
}

/* ========== GLAVNI STILOVI (header.php) ========== */
header {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    position: relative;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-download-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    background: linear-gradient(90deg, #002B5C, #001c3d);
    color: #ffd700;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 16px;
    position: relative;
    z-index: 999;
}
.app-download-banner span { color: #fff; }
.app-download-banner i { color: #ffd700; font-size: 0.9rem; }
.app-download-banner .banner-arrow { font-size: 0.7rem; opacity: 0.8; transition: transform 0.15s; }
.app-download-banner:hover .banner-arrow { transform: translateX(3px); }

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-link img {
    height: 50px;
    margin-right: 10px;
}

.site-title {
    font-size: 20px;
    font-weight: bold;
    color: red;
}

/* JEZIK SWITCHER */
.lang-switcher {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
    border: 1px solid #e2e8f0;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 44px;
    min-height: 40px;
}

.lang-btn:hover {
    background: white;
    color: #002B5C;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.lang-btn.lang-active {
    background: #002B5C;
    color: #ffd700;
    box-shadow: 0 1px 4px rgba(0,43,92,0.3);
}

/* MENU GUMB (originalna veličina) */
.menu-toggle {
    background: #007ACC;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.menu-toggle:hover {
    background: #005a99;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.menu-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

/* PADAJUĆI IZBORNIK (centriran) */
nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
    z-index: 1000;
    padding: 5px 0;
    white-space: nowrap;
    margin-top: 5px;
    width: 220px;
    min-width: 220px;
    transform: translateX(50%) translateY(-10px);
    transform-origin: top center;
}

nav.active {
    opacity: 1;
    transform: translateX(50%) translateY(0);
    pointer-events: auto;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

nav a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s;
    text-align: left;
    width: calc(100% - 10px);
    margin: 0 5px;
    box-sizing: border-box;
    cursor: pointer;
}

nav a:hover {
    background: #007ACC;
    color: #fff;
}

/* ========== MOBILNA POBOLJŠANJA (header) ========== */
@media (max-width: 768px) {
    nav {
        width: min(220px, calc(100vw - 60px));
    }
    .site-title {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .site-title {
        display: none;
    }
    .logo-link img {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 12px;
    }
    .logo-link img {
        height: 40px;
    }
    nav {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        max-width: calc(100vw - 30px);
        width: 220px;
    }
    nav.active {
        transform: translateX(-50%) translateY(0);
    }
    .menu-toggle {
        padding: 8px 16px;
        font-size: 14px;
    }
    nav a {
        padding: 4px 10px;
        font-size: 0.9rem;
        width: calc(100% - 8px);
        margin: 0 4px;
    }
    .nav-container {
        gap: 0;
    }
    .lang-btn {
        padding: 6px 10px;
        min-width: 48px;
        min-height: 40px;
        font-size: 13px;
    }
    .lang-switcher {
        gap: 0;
    }
}

@media (max-width: 360px) {
    .menu-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }
    .lang-btn {
        padding: 4px 8px;
        min-width: 42px;
        font-size: 11px;
    }
    .logo-link img {
        height: 35px;
    }
}

/* ========== ZAJEDNIČKE KOMPONENTE (dodaju se dok se otkrivaju po stranicama) ==========
   Napomena za buduće ekstrakcije: kad naiđeš na obrazac "page-header hero card"
   (bijela kartica, border-radius 12px, box-shadow 0 4px 6px rgba(0,0,0,.05),
   border-bottom 3px solid gold, navy h1) dodaj ga ovdje kao .page-hero prije
   nego ga dupliciraš po stranicama. Isto za .card (bijela kartica/hover-lift),
   .accordion*, .filter-pill, .modal*, .data-table, .state-empty/.state-loading,
   .badge* — vidi standardizaciju u planu (twinkling-knitting-mitten.md). */
