/* navigation.css - STILOVI ZA NAVIGACIONI BAR */

/* NAVIGACIONI BAR */
.navbar {
    background: #1A1A1A;
    border-bottom: 3px solid #BFA14A;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    gap: 1rem;
}

/* GORNJI RED: LOGO, CTA i JEZIK */
.nav-top-row {
    padding: 1rem 2rem; 
    border-bottom: 1px solid #282828; 
}

/* DONJI RED: LINKOVI i SOCIJALNE MREŽE */
.nav-bottom-row {
    padding: 0.5rem 2rem; 
}

/* LOGO - UKLONJEN FRAME */
.nav-logo {
    transition: all 0.5s ease;
    border-radius: 10px;
    padding: 5px;
    border: 3px solid transparent; 
    flex-shrink: 0;
}

.nav-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(82%) sepia(20%) saturate(1183%) hue-rotate(4deg) brightness(93%) contrast(87%);
    display: block;
}

.nav-container:hover .nav-logo {
    animation: fire-glow-card 3s ease-in-out infinite;
    border-color: transparent !important; 
}

/* NAVIGACIONI MENI - UKLONJENE BULLET TAČKE */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-start;
}

.nav-link {
    color: #BFA14A;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: block;
    border: 2px solid transparent; 
}

.nav-link:hover {
    color: #fff;
    animation: fire-glow-card 3s ease-in-out infinite;
}

.nav-link.active-link {
    color: #fff;
    animation: fire-glow-card 3s ease-in-out infinite;
}

/* DESNA SEKCIJA - U GORNJEM REDU: CTA i JEZIK. */
.nav-top-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    flex-grow: 1;
    justify-content: flex-end;
}

/* DESNA SEKCIJA - U DONJEM REDU: SOCIJALNE MREŽE */
.nav-bottom-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    justify-content: flex-end;
}

/* LANGUAGE DROPDOWN - POPRAVAK PREKLAPANJA */
.language-dropdown {
    position: relative;
    z-index: 1002; 
    
    /* === POČETAK IZMJENE: 1/3 ŠIRINA === */
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    display: flex;
    justify-content: center;
    /* === KRAJ IZMJENE === */
}

.language-btn {
    background: transparent;
    border: 2px solid #BFA14A;
    color: #BFA14A;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap; 
    
    /* === POČETAK IZMJENE: 1/3 ŠIRINA (Prilagodba) === */
    width: 100%;
    justify-content: center;
    padding: 0.7rem 0.5rem; /* Usklađeno s CTA visinom */
    font-size: 0.9rem;
    /* === KRAJ IZMJENE === */
}

.language-btn:hover {
    background: #BFA14A;
    color: #1A1A1A;
}

.language-menu {
    position: absolute;
    top: 50%; 
    right: 0; 
    background: #1A1A1A;
    border: 2px solid #BFA14A;
    border-radius: 5px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    min-width: 80px;
    z-index: 1003; 
    transform: translateY(-50%); 
}

.language-menu button {
    background: none;
    border: none;
    color: #BFA14A;
    padding: 0.5rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    white-space: nowrap; 
}

.language-menu button:hover {
    color: #fff;
    background: rgba(191, 161, 74, 0.2);
}

.language-dropdown:hover .language-menu {
    display: flex;
}

/* CTA BUTTON (U GORNJEM REDU) - FIKSNA ŠIRINA */
.nav-cta {
    background: #BFA14A;
    color: #1A1A1A !important;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid #BFA14A;
    white-space: nowrap; 
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;

    /* === POČETAK IZMJENE: 1/3 ŠIRINA === */
    padding: 0.7rem 0.5rem; /* Smanjen padding L/D */
    font-size: 0.9rem;      /* Smanjen font */
    max-width: none;        /* Uklonjen max-width */
    flex-grow: 1;           /* Dozvoli rast */
    flex-shrink: 1;         /* Dozvoli smanjivanje */
    flex-basis: 0;          /* Jednaka baza */
    /* === KRAJ IZMJENE === */
}

.nav-cta:hover {
    background: transparent;
    color: #BFA14A !important;
    box-shadow: 0 0 15px #BFA14A;
}

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
    display: none;
    color: #BFA14A;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1A1A1A;
    z-index: 999;
    
    /* Povećavamo gornji padding da se vidi Logo + Ime + prva stavka */
    padding: 80px 1rem 1rem 1rem; 
    
    /* UKLONJEN GAP IZ MOBILNOG MENIJA (SADA KORISTIMO MARGINU NA LINKOVIMA) */
    gap: 0;
    
    flex-direction: column;
    overflow-y: auto; 
    height: 100vh;
}

/* Kontejner za glavne linkove - prilagodba za listu */
.mobile-nav-links-container {
    /* Mijenjamo grid na flex/blok model jer se na slici ne ponaša kao grid */
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem; /* Razmak do sljedeće sekcije (socials) */
}

/* Glavni linkovi */
.mobile-nav-link {
    color: #BFA14A;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    
    /* AŽURIRANO: Smanjen font za mobilni izbornik */
    font-size: 1.2rem; 
    
    /* AŽURIRANO: Minimalno punjenje da zauzme manje vertikalnog prostora */
    padding: 0.6rem 1rem; 
    
    border-radius: 5px;
    border: 2px solid transparent;
    
    /* AŽURIRANO: Vrlo mali razmak između linkova */
    margin-bottom: 0.1rem; 
    
    display: block; /* Važno za ispravan prikaz */
    text-align: center;
    font-weight: 600;
}

.mobile-nav-link:hover {
    color: #fff;
    animation: fire-glow-card 3s ease-in-out infinite;
}

.mobile-nav-link.active-link {
    color: #fff;
    animation: fire-glow-card 3s ease-in-out infinite;
}

/* AŽURIRANI STILOVI ZA MOBILNE DRUŠTVENE MREŽE */
.mobile-menu .mobile-socials {
    display: flex;
    justify-content: center;
    
    /* AŽURIRANO: Smanjen gornji razmak i gap */
    margin-top: 0.5rem; 
    gap: 1.5rem;
    
    padding-bottom: 1rem; 
}

.mobile-menu .mobile-social-icon {
    font-size: 1.8rem; /* Nešto veće ikone za lakši klik */
    border: 2px solid #BFA14A;
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 60px;
    text-align: center;
}

/* JEZIČNI GUMB NA DNU */
.mobile-language {
    display: flex;
    justify-content: center;
    
    /* AŽURIRANO: Smanjen gornji razmak */
    margin-top: 0.5rem; 
    
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
}

.mobile-language a {
    /* Prekriva default .mobile-nav-link stilove */
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.6rem 2rem; 
    margin: 0.2rem;
    
    /* Važno: poništavanje stila za defaultni link */
    width: auto;
    border: 2px solid #BFA14A;
    border-radius: 8px;
    text-align: center;
}

/* MAIN WRAPPER - FULL WIDTH - POPRAVLJEN Z-INDEX */
.main-wrapper {
    width: 100%;
    margin-top: 140px; 
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1; 
}

/* ... (ostatak koda - vizitka, footer, responsive media queries) ... */

/* VIZITKA CONTAINER - POPRAVLJEN Z-INDEX */
.vizitka-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    position: relative;
    z-index: 1; 
}

/* FOOTER */
.main-footer {
    background: #1A1A1A;
    border-top: 3px solid #BFA14A;
    padding: 2rem 0;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    color: #BFA14A;
    text-align: center;
}

.footer-section a {
    color: #BFA14A;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    color: #BFA14A;
    border-top: 1px solid #333;
    padding-top: 1rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem; 
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
    }
    
    .nav-top-controls {
        gap: 0.5rem;
    }
    
    /* Prilagodba social ikona u donjem redu */
    .nav-bottom-controls {
        gap: 0.5rem;
    }
    .nav-bottom-controls .nav-social-icon {
        font-size: 1.2rem;
        padding: 0.2rem;
    }
    
    .nav-cta {
        /* === POČETAK IZMJENE: 1/3 ŠIRINA (Prilagodba) === */
        padding: 0.6rem 0.5rem; /* Smanjen padding L/D */
        font-size: 0.9rem;      /* Smanjen font */
        max-width: none;        /* Uklonjen max-width */
        /* === KRAJ IZMJENE === */
    }
}

@media (max-width: 768px) {
    /* SAKRIVANJE DRUGOG REDA NA MOBITELU */
    .nav-bottom-row {
        display: none;
    }
    
    .nav-top-row {
        border-bottom: none;
        padding: 1rem;
    }

    .nav-menu {
        display: none;
    }
    
    /* Na mobitelu ponovno prikaži jezik i CTA u gornjem redu */
    .nav-top-controls {
        display: flex; 
        flex-grow: 1;
        justify-content: flex-end;
        align-items: center;
        /* === POČETAK IZMJENE: Smanjen gap === */
        gap: 0.5rem;
        /* === KRAJ IZMJENE === */
    }
    
    .nav-top-controls .language-dropdown {
        display: block; 
    }
    
    .nav-right, 
    .nav-bottom-controls {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .nav-container {
        padding: 1rem;
        gap: 0.5rem; 
    }
    
    .main-wrapper {
        /* Vraća se na visinu jednog reda na mobitelu */
        margin-top: 70px;
    }
    
    /* Prilagodba mobitelu za centriranje menu-a */
    .mobile-menu {
        padding: 80px 1rem 1rem 1rem; 
    }

    .mobile-language {
        margin-top: 2rem;
    }
    
    /* Poništi centralno pozicioniranje na mobitelu jer tu treba ići normalno ispod gumba */
    .language-menu {
        top: 100%;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 40px;
    }
    
    .vizitka-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .nav-container {
        padding: 0.8rem;
    }
    
    /* Na malim ekranima malo smanji CTA da stane */
    .nav-cta {
        /* === POČETAK IZMJENE: 1/3 ŠIRINA (Prilagodba) === */
        padding: 0.5rem 0.5rem; /* Smanjen padding L/D */
        font-size: 0.9rem;      /* Font je već bio 0.9rem */
        max-width: none;        /* Uklonjen max-width */
        /* === KRAJ IZMJENE === */
    }
    
    /* Dodatno smanjenje za najmanje mobitele */
    .mobile-nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
    .mobile-menu .mobile-social-icon {
        font-size: 1.5rem;
        min-width: 50px;
        padding: 0.4rem;
    }
    
    .mobile-menu .mobile-socials {
        gap: 1rem;
    }
}