/* =========================================================
   THEME.CSS — UPIS NEW (sređeno, bez duplih pravila)
   Marko: segmenti su obeleženi komentarima
   ========================================================= */


/* =========================================================
   1) GLOBAL / TYPOGRAPHY / PAGE BACKGROUND
   ========================================================= */
:root{
    /* promeni ovo ako ti treba druga “rezerva” visine (header+footer) */
    --upis-screen-offset: 350px;
}

html, body{
    height: 100%;
}

body.app-body{
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    /* Sticky footer */
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    /* Full-page background */
    background-image: var(--app-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    /* Default text */
    color: rgba(255,255,255,.92);
}

/* Ako ikad imaš overlay iznad pozadine, ovo obezbeđuje da sadržaj bude iznad */
/*.app-body > *{*/
/*    position: relative;*/
/*    z-index: 1;*/
/*}*/

/*TODO:Dodaj media query*/
@media (max-width: 768px){

}

/* =========================================================
   2) LAYOUT (MAIN / CONTAINER / SURFACE WRAPPER)
   - main raste i gura footer na dno
   - surface wrapper je TRANSPARENT (bez stakla/senke)
   ========================================================= */
.container-fluid{
    padding: 0 !important;
}
body.app-body .app-main{
    flex: 1 0 auto;         /* gura footer dole */
    display: flex;
    background: transparent;
}

body.app-body .app-main > .container{
    flex: 1 0 auto;
    display: flex;
}

/* Glavni wrapper u layoutu: transparent + full height + TOP/BOTTOM raspored */
body.app-body .app-main .surface{
    width: 100%;
    flex: 1 0 auto;

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* TOP + BOTTOM */

    /* nema stakla/senke */
    background: transparent !important;
    border: 0 !important;
    backdrop-filter: none !important;

    /* layout kontrola spacinga ide iz twig-a, pa ovde 0 */
    padding: 0 !important;
}

/* Ako ti nekad treba “staklo” za čitljivost (opciono), koristi class="surface-glass" */
.surface-glass{
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem;
}


/* =========================================================
   3) UPIS HOME SCREEN (TOP + BOTTOM, bez scrolla)
   ========================================================= */
.upis-screen{
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* ovo si ti podešavao da sve stane */
    min-height: calc(100vh - var(--upis-screen-offset));
}

/* TOP / BOTTOM horizontal padding */
.upis-top,
.upis-bottom{
    padding-left: 1rem;
    padding-right: 1rem;
}


/* =========================================================
   4) HEADER / TOPBAR (TRANSPARENT / GLASS)
   ========================================================= */
.topbar{
    background: rgba(10, 12, 24, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-surface{
    background: rgba(60, 20, 120, .35); /* tvoja ljubičasta traka */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.10);
}

/* Brand text */
.brand-kicker,
.brand-title{
    color: rgba(255,255,255,.92);
}


/* =========================================================
   5) TOP NAV LINKS (samo linkovi, bela slova)
   ========================================================= */
.topnav-link{
    color: rgba(255,255,255,.92);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: .2px;
    padding: .25rem 0;
    position: relative;
}

.topnav-link:hover{
    color: #fff;
}

.topnav-link::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0%;
    height:2px;
    background: rgba(255,255,255,.85);
    transition: width .18s ease;
}

.topnav-link:hover::after{
    width:100%;
}

/* Language switch */
.lang-link{
    color: rgba(255,255,255,.92);
    text-decoration:none;
    font-weight: 600;
}

.lang-link:hover{
    color:#fff;
    text-decoration: underline;
}

.lang-sep{
    color: rgba(255,255,255,.65);
}

/* helper */
.text-white-75{ color: rgba(255,255,255,.75) !important; }


/* =========================================================
   6) OPTIONAL: CHIP LINKOVI (ako ih negde koristiš)
   ========================================================= */
.chip-link{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    padding:.45rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
    text-decoration: none;
}
.chip-link:hover{
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
    color: #fff;
}


/* =========================================================
   7) OPTIONAL: OFFCANVAS (ako ga vratiš nekad)
   - trenutno možeš i da obrišeš ovaj segment
   ========================================================= */
.offcanvas{
    background: rgba(10, 12, 24, .35) !important;
    color: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-left: 1px solid rgba(255,255,255,.12);
    position: absolute;
}
.offcanvas .offcanvas-header{
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.offcanvas .btn-close{
    filter: invert(1);
    opacity: .85;
}
.offcanvas a{
    color: rgba(255,255,255,.92);
    text-decoration: none;
}
.offcanvas a:hover{
    color: #fff;
    text-decoration: underline;
}


/* =========================================================
   8) HERO TEXT
   ========================================================= */
.upis-hero-title{
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 4rem);
    letter-spacing: .2px;
    text-shadow: 0 6px 30px rgba(0,0,0,.35);
}

.upis-hero-subtitle{
    margin-top: .75rem;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    color: rgba(255,255,255,.85);
    text-shadow: 0 6px 24px rgba(0,0,0,.35);
}


/* =========================================================
   9) CTA CARDS (dugmad kao kartice)
   ========================================================= */
.cta-card{
    display:flex;
    align-items:center;
    gap: 1rem;

    padding: 1.15rem 1.2rem;
    border-radius: 22px;
    text-decoration:none;
    color:#fff;

    border: 1px solid rgba(255,255,255,.20);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    /* ako ne želiš senku na karticama, stavi none */
    box-shadow: 0 14px 50px rgba(0,0,0,.22);

    position: relative;
    overflow: hidden;
    min-height: 92px;
    will-change: transform;
}

/* diskretan highlight u pozadini (ne sme da prekrije orbit) */
.cta-card::before{
    content:"";
    position:absolute;
    inset:-60% -40%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 55%);
    transform: rotate(12deg);
    pointer-events:none;
    z-index: 0; /* bitno: orbit je iznad ovoga */
}

.cta-card--blue{
    background: linear-gradient(90deg, rgba(40,130,255,.55), rgba(120,200,255,.25));
}

.cta-card--purple{
    background: linear-gradient(90deg, rgba(140,60,255,.55), rgba(255,120,220,.25));
}

.cta-ico{
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    flex: 0 0 auto;
}
.cta-ico i{ font-size: 1.6rem; }

.cta-text{
    line-height: 1.05;
    text-align: left;
    flex: 1 1 auto;
}

.cta-title{
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .2px;
    text-shadow: 0 8px 22px rgba(0,0,0,.28);
}

.cta-arrow{
    font-size: 1.6rem;
    opacity: .9;
}

.cta-card:hover{
    transform: translateY(-2px);
    transition: transform .15s ease;
    border-color: rgba(255,255,255,.28);
}


/* =========================================================
   10) ORBIT BORDER — bela “tačkica/linija” koja kruži
   (ovo radi pouzdano, bez mask-composite)
   ========================================================= */

/* sadržaj iznad orbita */
.cta-card > *{
    position: relative;
    z-index: 2;
}

/* orbit prsten */
.cta-card::after{
    content:"";
    position:absolute;
    inset:-3px;                 /* malo preko ivice */
    border-radius: inherit;
    z-index: 1;

    /* samo mali beli segment (tačkica/linija) */
    background: conic-gradient(
            from 0deg,
            rgba(255,255,255,0) 0deg,
            rgba(255,255,255,0) 348deg,
            rgba(255,255,255,1) 354deg,
            rgba(255,255,255,0) 360deg
    );

    /* prikaži SAMO prsten (debljina 3px) */
    -webkit-mask: radial-gradient(
            farthest-side,
            transparent calc(100% - 3px),
            #000 calc(100% - 3px)
    );
    mask: radial-gradient(
            farthest-side,
            transparent calc(100% - 3px),
            #000 calc(100% - 3px)
    );

    filter: drop-shadow(0 0 12px rgba(255,255,255,.85));
    opacity: .95;

    animation: orbit-spin 2.0s linear infinite;
    pointer-events:none;
}

.cta-card:hover::after{
    filter: drop-shadow(0 0 16px rgba(255,255,255,1));
    opacity: 1;
}

@keyframes orbit-spin{
    to{ transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce){
    .cta-card::after{ animation: none; }
}


/* =========================================================
   11) FOOTER — compact + sticky (uvek dole)
   ========================================================= */
body.app-body .app-footer{
    flex: 0 0 auto;
    margin-top: 2rem !important;
}

.app-footer .container{
    padding-top: .9rem !important;
    padding-bottom: .9rem !important;
}

.app-footer .row{
    row-gap: .75rem !important;
}

.app-footer,
.app-footer .text-white-75{
    font-size: .90rem;
    line-height: 1.35;
}

.app-footer .fs-4{
    font-size: 1.25rem !important;
}

.app-footer .d-flex.gap-3{
    gap: .75rem !important;
}

.app-footer .footer-emblem{
    max-height: 56px;
    width: auto;
    opacity: .95;
}

.app-footer .footer-logo{
    max-height: 38px;
    width: auto;
    opacity: .95;
}

.app-footer img{
    max-width: 100%;
    height: auto;
}

@media (max-width: 576px){
    .app-footer .container{
        padding-top: .75rem !important;
        padding-bottom: .75rem !important;
    }
    .app-footer,
    .app-footer .text-white-75{
        font-size: .86rem;
    }
    .app-footer .fs-4{
        font-size: 1.15rem !important;
    }
    .app-footer .footer-emblem{
        max-height: 44px;
    }
    .app-footer .footer-logo{
        max-height: 32px;
    }
}


/* =========================================================
   UPIS OSNOVNE — sticky subnav + sekcije
   ========================================================= */



.subnav-sticky{
    position: sticky;
    top: 0;              /* biće korigovano offset-om u JS */
    z-index: 20;
}

/* da sticky bude ispod glavnog headera */
.app-header.sticky-top + .app-main .subnav-sticky{
    top: 0;
}

.subnav-inner{
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;

    padding: .75rem 1rem;
    border-radius: 18px;

    background: rgba(10, 12, 24, .22);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.subnav-link{
    color: rgba(255,255,255,.92);
    text-decoration: none;
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    font-weight: 600;
    font-size: .95rem;
}

.subnav-link:hover{
    color: #fff;
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.22);
}

/* sekcije */
.upis-section{
    padding: 1.6rem 1rem;
    margin-top: 1.25rem;
    border-radius: 22px;

    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.section-title{
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.section-text{
    color: rgba(255,255,255,.82);
    margin-bottom: 1rem;
}

.section-box{
    background: rgba(0,0,0,.12);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 1rem;
}

/* da anchor skok ne sakrije naslov iza sticky elemenata (fallback bez JS) */
.upis-section{
    scroll-margin-top: 160px;
}

/* =========================================================
   HERO SEGMENT (background image: prijemniIspit)
   ========================================================= */

.osnovne-hero{
    background-size: cover;
    background-position: 50% 50% ;
}

/* =========================================================
   FULL-WIDTH HERO BAND (prekriva pozadinu u tom redu)
   ========================================================= */

.hero-band{
    position: relative;

    /* full-width background */
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* da bude “traka” preko cele strane */
    width: 100%;

    /* visina kao na dizajnu (menjaš po potrebi) */
    min-height: 1024px;
}

/* pošto ti je page background iza, ovde ga “prekrijemo” 100% */
.hero-band::before{
    content:"";
    position:absolute;
    inset:0;
    /* minimalni overlay da tekst bude čitljiv, ne ubija sliku */
    background: linear-gradient(90deg,
    rgba(20,10,40,.35) 0%,
    rgba(20,10,40,.15) 40%,
    rgba(20,10,40,0) 75%
    );
    pointer-events:none;
}

/* unutrašnji wrapper */
.hero-band-inner{
    position: relative;
    z-index: 2;
    min-height: inherit;
    display: flex;
    align-items: center;
    /*padding-top: 2.25rem;*/
    /*padding-bottom: 2.25rem;*/
}

/* layer za “tačne” pozicije */
.hero-layer{
    position: relative;
    width: 100%;
    min-height: 1024px; /* da imamo prostor za absolute elemente */
}

/* =========================================================
   TAČNE POZICIJE (DESKTOP)
   - ove vrednosti su “po dizajnu”, posle ih fino dotegnemo
   ========================================================= */

/* NASLOV */
.hero-t1{
    position: absolute;
    left: 0;
    top: 5%;
    font-weight: 900;
    font-size: clamp(2.1rem, 3.6vw, 3.6rem);
    color: #fff;
    letter-spacing: .2px;
    text-shadow: 0 10px 26px rgba(0,0,0,.35);
}

/* PODNASLOV */
.hero-t2{
    position: absolute;
    left: 0;
    top: 25%;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    color: rgba(255,255,255,.92);
    text-shadow: 0 10px 22px rgba(0,0,0,.30);
    max-width: 50%;
}

/* OPIS */
.hero-t3{
    position: absolute;
    left: 70%;
    top: 30%;
    max-width: 520px;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    color: rgba(255,255,255,.84);
    text-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.hero-t4{
    position: absolute;
    left: 20%;
    top: 60%;
    max-width: 520px;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    color: rgba(255,255,255,.84);
    text-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.hero-t5{
    position: absolute;
    left: 90%;
    top: 70%;
    max-width: 520px;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    color: rgba(255,255,255,.84);
    text-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.hero-t6{
    position: absolute;
    left: 0;
    top: 80%;
    max-width: 600px;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    color: rgba(255,255,255,.84);
    text-shadow: 0 10px 22px rgba(0,0,0,.25);
}

/* CTA dugmad (na tačnim mestima) */
.hero-cta1{
    position: absolute;
    left: 6%;
    top: 63%;
}

.hero-cta2{
    position: absolute;
    left: 18%;
    top: 63%;
}

/* =========================================================
   RESPONSIVE: na manjim ekranima složi sve normalno (stack)
   ========================================================= */
@media (max-width: 768px){

    .hero-band::before{
        background:none;
    }
    .hero-band{
        min-height: 520px;
        background-position: 65% center; /* da se fokusira desno */
    }

    .hero-layer{
        min-height: auto;
        display: grid;
        gap: .8rem;
    }

    .hero-t1,
    .hero-t2,
    .hero-t3,
    .hero-t4,
    .hero-t5,
    .hero-t6,
    .hero-cta1,
    .hero-cta2{
        position: relative;
        top:0;
        left: 0;
        max-width: 100%;
    }
    .hero-t5{
        display: none !important;
    }
    #sekcija-prijemni{
        background: none;
    }

    .hero-cta2{
        margin-left: .5rem;
    }
}



