/* ==========================================
   o-nama.css - Axaja Systems
   Stil za o-nama.html sa floating nav blokovima
   ========================================== */

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

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    min-height: 100vh;
    background-color: #0a0a0a;
    background-image: url('pozadina.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    font-family: 'Poppins', sans-serif;
    color: white;
    padding-top: 80px;
}

#bubbleCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}


/* ==========================================
   HEADER (isti kao index)
   ========================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid #d4af37;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo { flex-shrink: 0; }

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1.5px;
    transition: 0.3s;
}
nav a:hover { color: #00ffcc; text-shadow: 0 0 8px #00ffcc; }

.separator { color: rgba(255,255,255,0.3); margin: 0 5px; }

.auth-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: 0.3s;
}
.auth-link:hover { color: #00ffcc; }

.desktop-nav a {
    position: relative;
    transition: color 0.35s ease, transform 0.35s ease, letter-spacing 0.35s ease;
    display: inline-block;
}
.desktop-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    transition: width 0.4s ease, left 0.4s ease;
}
.desktop-nav a:hover {
    color: #d4af37;
    letter-spacing: 0.5px;
    transform: translateY(-1px);
}
.desktop-nav a:hover::after {
    width: 100%;
    left: 0;
}

.header-actions .auth-link {
    transition: color 0.35s ease, transform 0.35s ease, text-shadow 0.35s ease;
}
.header-actions .auth-link:hover {
    color: #d4af37;
    transform: translateY(-1px);
    text-shadow: 0 0 8px rgba(212,175,55,0.4);
}


/* ==========================================
   HAMBURGER + SIDE NAV
   ========================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 28px;
    cursor: pointer;
    z-index: 100;
    margin-right: 14px;
}
.hamburger span {
    display: block;
    height: 3px;
    background: #d4af37;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.side-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(10, 11, 13, 0.96);
    backdrop-filter: blur(14px);
    border-left: 1px solid rgba(212,175,55,0.3);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 9999;
    padding-top: 70px;
    overflow-x: hidden;
    transition: width 0.3s ease;
}
.side-nav .close-btn-side {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 2.2rem;
    color: #d4af37;
    text-decoration: none;
    font-weight: 300;
}
.side-nav-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 24px 30px 24px;
    white-space: nowrap;
}
.side-nav-content a {
    color: #ddd;
    padding: 12px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, padding-left 0.35s ease;
    position: relative;
    padding-left: 14px !important;
}
.side-nav-content a::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-10px, -50%);
    color: #d4af37;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    font-size: 1.1rem;
    font-weight: bold;
}
.side-nav-content a:hover {
    padding-left: 26px !important;
    color: #d4af37 !important;
    background: rgba(212,175,55,0.08);
}
.side-nav-content a:hover::before {
    opacity: 1;
    transform: translate(4px, -50%);
}
.side-nav-content hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 12px 0;
}


/* ==========================================
   FLOATING NAV (lijevo, pravougaonik) - GOLD NASLOVI
   ========================================== */
.floating-nav {
    position: fixed;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 16px;
    min-width: 220px;
    max-width: 260px;
    z-index: 1000;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
    max-height: 70vh;
    overflow-y: auto;
}

.floating-nav h4 {
    color: #d4af37;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 14px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.floating-nav a {
    display: block;
    color: #d4af37;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    transition: all 0.25s;
    border-left: 3px solid transparent;
    cursor: pointer;
    opacity: 0.75;
}

.floating-nav a:hover {
    color: #f9e27d;
    background: rgba(212, 175, 55, 0.12);
    border-left-color: #d4af37;
    padding-left: 18px;
    opacity: 1;
}

.floating-nav a.aktivan {
    color: #fff;
    background: rgba(212, 175, 55, 0.2);
    border-left-color: #d4af37;
    opacity: 1;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Scrollbar floating nav */
.floating-nav::-webkit-scrollbar { width: 4px; }
.floating-nav::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}


/* ==========================================
   O NAMA - GLAVNI SADRŽAJ
   ========================================== */
.onama-wrap {
    width: 80%;
    max-width: 1600px;
    margin: 113px auto 60px auto;
    padding: 0 40px 0 320px;
    box-sizing: border-box;
}

/* Hero */
.onama-hero {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 40px 50px;
    margin-bottom: 30px;
    text-align: center;
}

.onama-hero h1 {
    color: #d4af37;
    font-size: 2.4rem;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.onama-hero .line-decorator {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #00ffcc, #d4af37);
    margin: 0 auto 22px;
    border-radius: 2px;
}

.onama-hero p {
    color: #e8e8e8;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
    white-space: pre-wrap;
}


/* ==========================================
   BLOKOVI (Naslov + Slike + Video + Tekst)
   ========================================== */
.onama-blok {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 32px 36px;
    margin-bottom: 26px;
    transition: border-color 0.3s;
    scroll-margin-top: 100px;
}

.onama-blok:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.onama-blok h2 {
    color: #d4af37;
    font-size: 1.7rem;
    margin: 0 0 20px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    gap: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.onama-blok h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #d4af37, #00ffcc);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Jedna slika - velika */
.blok-jedna-slika {
    margin: 0 0 22px 0;
}
.blok-jedna-slika img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}
.blok-jedna-slika img:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Galerija (više slika) - grid */
.blok-galerija {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 0 0 22px 0;
}
.blok-slika-stavka {
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s;
}
.blok-slika-stavka:hover {
    border-color: #d4af37;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.blok-slika-stavka img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video u bloku */
.blok-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    margin: 0 0 22px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.blok-video iframe,
.blok-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tekst */
.onama-blok-tekst {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
    display: block;
    text-indent: 0;
}
.onama-blok-tekst p {
    margin: 0 0 14px 0;
    color: #e0e0e0;
}
.onama-blok-tekst p:last-child {
    margin-bottom: 0;
}


/* Lightbox za slike */
.slika-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 11000;
    place-items: center;
    padding: 30px;
}
.slika-lightbox.open { display: grid; }

.slika-lightbox-content {
    position: relative;
    max-width: 780px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slika-lightbox img {
    max-width: 780px;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: max-width 0.3s ease;
    display: block;
}

/* Dugmad u lightbox-u (zatvori + fullscreen) */
.lightbox-btn {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    z-index: 11002;
}
.lightbox-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #fff;
    border-color: #d4af37;
    transform: scale(1.08);
}
.lightbox-btn-close {
    top: -55px;
    right: 0;
}
.lightbox-btn-fullscreen {
    top: -55px;
    right: 56px;
}

/* Fullscreen mod */
.slika-lightbox.fullscreen .slika-lightbox-content {
    max-width: 100%;
}
.slika-lightbox.fullscreen img {
    max-width: 95vw;
    max-height: 95vh;
}


/* Galerija (postojeća iz baze) */
.galerija-grid {
    display: grid;
    gap: 14px;
    margin: 30px 0;
}
.galerija-stavka {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: transform 0.2s;
}
.galerija-stavka:hover { transform: scale(1.02); border-color: #d4af37; }
.galerija-stavka img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }


/* ==========================================
   MODALI (Login / Register)
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}
.modal-content {
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(15px);
    border: 2px solid #d4af37;
    border-radius: 25px;
    padding: 50px 60px;
    width: 550px;
    margin: 5% auto;
    color: white;
    box-shadow: 0 15px 60px rgba(212,175,55,0.15);
    position: relative;
}
.modal-content h2 {
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 40px;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
}
.input-group { margin-bottom: 30px; }
.input-group label {
    display: block;
    color: #f9e27d;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}
.input-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 15px;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
}
.input-group input:focus { border-color: #d4af37; background: rgba(212,175,55,0.05); }
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #d4af37 0%, #f9e27d 100%);
    border: none;
    border-radius: 15px;
    color: #000;
    font-weight: 800;
    cursor: pointer;
    font-size: 1.2rem;
    text-transform: uppercase;
}
.btn-submit:hover { filter: brightness(1.1); }
.close-btn {
    position: absolute;
    right: 25px;
    top: 20px;
    color: #d4af37;
    font-size: 30px;
    cursor: pointer;
}


/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
    background-color: #0b0e14;
    color: #ffffff;
    padding: 60px 10% 20px;
    margin-top: 50px;
    border-top: 2px solid #00ffcc;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.footer-column { flex: 1; min-width: 200px; }
.footer-logo { color: #00ffcc; font-size: 1.8rem; margin-bottom: 20px; }
.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: #cbd5e0; text-decoration: none; transition: 0.3s; }
.footer-column ul li a:hover { color: #00ffcc; padding-left: 5px; }
.social-list { list-style: none; }
.social-link-item {
    display: flex;
    justify-content: space-between;
    color: #cbd5e0;
    text-decoration: none;
    padding: 5px 0;
}
.social-link-item:hover { color: #00ffcc; padding-left: 5px; }
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: #718096;
}


/* ==========================================
   JEZIK SELECTOR
   ========================================== */
#jezik-selector { position: relative; margin-right: 15px; }
.aktivan-jezik {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 6px 12px;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
}
.aktivan-jezik:hover {
    background: rgba(0,255,204,0.1);
    border-color: #00ffcc;
    color: #00ffcc;
}
.jezik-meni {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(10,10,15,0.97);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    backdrop-filter: blur(15px);
    z-index: 5000;
    flex-direction: column;
    gap: 2px;
}
.jezik-meni.otvoren { display: flex; }
.jezik-opcija {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    color: #aaa;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    text-align: left;
}
.jezik-opcija:hover { background: rgba(0,255,204,0.08); color: #fff; }
.jezik-opcija.izabran { background: rgba(0,255,204,0.12); color: #00ffcc; font-weight: bold; }


/* ==========================================
   RESPONZIVNOST
   ========================================== */
/* Tablet - floating nav postaje horizontalan na vrhu */
@media (max-width: 1100px) {
    .floating-nav {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto 24px auto;
        max-height: none;
        width: calc(100% - 60px);
        max-width: 900px;
    }
    .floating-nav h4 {
        text-align: center;
        justify-content: center;
    }
    .floating-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .floating-nav a {
        padding: 7px 12px;
        font-size: 0.82rem;
        border-left: none;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
    }
    .floating-nav a:hover {
        padding-left: 12px;
        border-color: rgba(212, 175, 55, 0.4);
    }
    .floating-nav a.aktivan {
        border-color: #d4af37;
        background: rgba(212, 175, 55, 0.18);
    }
    .onama-wrap {
        padding: 0 30px;
        max-width: 900px;
    }
}

@media (max-width: 900px) {
    .desktop-nav { display: none !important; }
    .hamburger   { display: flex !important; }
    header {
        padding: 10px 16px !important;
    }
    .logo img { height: 60px !important; }
    #user-status-box,
    #user-status-mini {
        display: none !important;
    }
}

/* Sakri side nav user info na desktopu */
@media (min-width: 901px) {
    .side-nav-user-info {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .onama-wrap {
        padding: 0 15px;
        margin-top: 30px;
    }
    .onama-hero {
        padding: 26px 22px;
    }
    .onama-hero h1 { font-size: 1.6rem; }
    .onama-blok {
        padding: 22px 20px;
    }
    .onama-blok h2 { font-size: 1.25rem; }
    .floating-nav {
        padding: 10px;
    }
    .modal-content { width: 90%; padding: 30px 25px; margin: 10% auto; }
    .footer-container { flex-direction: column; text-align: center; }
    #jezik-selector { margin-right: 0; margin-bottom: 10px; }
    .jezik-meni { right: auto; left: 0; }
}