/**
 * global.css — verzija 1.3
 * SAMSUNG FIX: --bg je zamenjen sa #e5dccf svuda gde Samsung dark mode može da ga potamni
 * v1.3: dodat .header-right i .lang-btn za SR/EN prebacivač
 */

:root {
    --bg:      #e5dccf;
    --ink:     #1a1a1a;
    --gold:    #8c6b26;
    --border:  rgba(0,0,0,0.12);
    --f-disp:  'Anton', sans-serif;
    --f-serif: 'Playfair Display', serif;
    --f-body:  'Lato', sans-serif;
}

/* ── HEADER ── */
.header-bar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1.4rem 2.5rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 2000;
    background-color: transparent;
    color: #1a1a1a;
    border-bottom: 1px solid transparent;
    transition: background-color .35s ease, border-color .3s, box-shadow .3s;
}

.header-bar.scrolled {
    border-bottom-color: rgba(0,0,0,0.12);
    box-shadow: 0 1px 20px rgba(0,0,0,0.07);
}

.header-bar.dark-mode {
    background-color: #e5dccf;
    color: #1a1a1a;
}

@media (prefers-color-scheme: dark) {
    .header-bar {
        color: #1a1a1a !important;
    }
    .header-bar:not(.dark-mode) {
        background-color: transparent !important;
    }
    .header-bar.dark-mode {
        background-color: #e5dccf !important;
    }
}

/* ── LOGO ── */
.brand-logo {
    font-family: var(--f-disp);
    font-size: 1.25rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    opacity: 1;
    transition: opacity .3s;
}

/* ── HEADER DESNA STRANA (meni + jezik) ── */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

/* ── JEZIČKI DUGME ── */
.lang-btn {
    font-family: var(--f-disp);
    font-size: .82rem;
    letter-spacing: .2em;
    color: #1a1a1a;
    text-decoration: none;
    opacity: .45;
    transition: opacity .25s, color .25s;
    user-select: none;
}
.lang-btn:hover { opacity: 1; }

/* ── PREBACIVAČ JEZIKA (SR / EN / RU) ── */
.lang-switch {
    display: flex;
    align-items: center;
    gap: .55rem;
}
.lang-switch .lang-sep {
    color: #1a1a1a;
    opacity: .25;
    font-size: .72rem;
    user-select: none;
}
.lang-btn.is-active {
    opacity: 1;
    color: #8c6b26 !important;
    cursor: default;
    pointer-events: none;
}

/* ── MENI DUGME ── */
.menu-trigger {
    cursor: pointer;
    font-family: var(--f-disp);
    font-size: 1rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    z-index: 2001;
    color: #1a1a1a;
    user-select: none;
}

/* ── OVERLAY MENI ── */
.overlay-menu {
    position: fixed; inset: 0;
    background: #e5dccf;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease-in-out, transform .45s ease-in-out, visibility .45s;
    transform: translateY(-16px);
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (prefers-color-scheme: dark) {
    .overlay-menu {
        background: #e5dccf !important;
    }
}

.menu-links { list-style: none; }
.menu-links li { margin: .9rem 0; text-align: center; }
.menu-links a {
    font-family: var(--f-serif);
    font-size: 2.6rem;
    color: #666;
    display: block;
    text-decoration: none;
    transition: color .25s, letter-spacing .25s;
}
.menu-links a:hover { color: #000; font-style: italic; letter-spacing: 2px; }

/* ── PRETRAGA ── */
.overlay-search {
    margin-top: 2.5rem;
    border-bottom: 1px solid #666;
}
.overlay-search input {
    background: transparent;
    border: none;
    color: #1a1a1a;
    font-family: var(--f-body);
    font-size: 1.1rem;
    padding: 8px;
    text-align: center;
    outline: none;
    width: 280px;
}
.search-results-container {
    margin-top: 1rem;
    max-height: 250px;
    overflow-y: auto;
    text-align: center;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.search-result-item {
    display: block;
    color: #1a1a1a;
    font-family: var(--f-body);
    font-size: 1.1rem;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    text-decoration: none;
    transition: color 0.2s, font-weight 0.2s;
}
.search-result-item:hover { color: #8c6b26; font-weight: 700; }

/* ── FOOTER ── */
.site-footer {
    background-color: #111111;
    color: #888;
    padding: 2rem 5%;
    font-family: var(--f-body);
    border-top: 1px solid #333;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.social-links { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.social-icon { width: 20px; height: 20px; fill: #fff; opacity: 0.7; transition: opacity .3s, transform .3s, fill .3s; display: block; }
.social-links a:hover .social-icon { opacity: 1; transform: translateY(-2px); fill: #8c6b26; }
.footer-copyright { font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
.made-by { font-size: 0.75rem; color: #6b7280; display: flex; flex-direction: column; align-items: center; }
.made-by span { margin-bottom: 0.1rem; display: block; }
.de-logo { height: 1.2rem; width: auto; object-fit: contain; opacity: 0.7; transition: opacity .3s; display: inline-block; }
.de-logo:hover { opacity: 1; }

/* ── FOOTER DESKTOP ── */
@media (min-width: 768px) {
    .footer-content { flex-direction: row; justify-content: space-between; align-items: center; }
    .made-by { align-items: flex-start; order: 1; }
    .footer-center { order: 2; }
    .social-links { order: 3; }
}

/* ── HEADER MOBILNI ── */
@media (max-width: 768px) {
    .header-bar { padding: 1.2rem 1.4rem; }
    .menu-links a { font-size: 2rem; }
    .header-right { gap: 1rem; }
    .lang-switch { gap: .4rem; }
    .lang-btn { font-size: .75rem; letter-spacing: .12em; }
}