@charset "utf-8";

@import url('https://fonts.googleapis.com');

/* Efekat glatkog prelivanja pri učitavanju stranice */
body.index-stranica {
    opacity: 0;
    animation: prelivanjeStranice 0.6s ease-in-out forwards;
}

@keyframes prelivanjeStranice {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================
   1. FONTOVI I GLOBALNA PODEŠAVANJA
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');

h1  {
    font-family: "Playfair Display", serif!important;
    font-weight: 300!important;
    font-size: 50px!important;
    line-height: 1.2!important;
    color: #FFFFFF;
    text-align: center;
    letter-spacing: 1px!important;
    }



/* ==========================================
   1. INDEX - Intro
   ========================================== */



        body.index-stranica { 
            background-color: black!important; 
            margin: 0; 
            position: relative; 
            overflow: hidden; 
            min-height: 100vh;
        }

        /* INTRO KREĆE TEK NAKON POTVRDE GODINA */
        body.index-stranica.kreni-animacija {
            background-image: url("../img/brick.webp"); 
            background-repeat: no-repeat; 
            background-attachment: fixed; 
            background-position: center center; 
            background-size: cover; 
        }

        /* CRNI PRELAZ (ZATAMNJENJE NA KRAJU INTRA) */
        body.index-stranica .crni-prelaz { 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            background-color: #000; 
            opacity: 0; 
            z-index: 1; 
            pointer-events: none; 
        }
        
         body.index-stranica .kreni-animacija .crni-prelaz {
            animation: postepenoZatamni 2.5s ease-in-out 5s forwards; 
        }

        /* KONTEJNER ZA SEKVENCU */
         body.index-stranica .zuma-kontejner { 
            display: none; 
            position: relative; 
            z-index: 2; 
            width: 100%; 
            height: 100vh; 
            flex-direction: column; 
            justify-content: center; 
            align-items: center; 
            overflow: hidden; 
            box-sizing: border-box; /* Sprečava padding da raširi kontejner */
            padding: 0 10px;       /* Dodaje 20px slobodnog prostora sa leve i desne strane */
        }

    /* ANIMIRANI LOGO VINARIJE */
         body.index-stranica .animirana-slika { 
            width: auto; 
            max-height: 70vh; 
            transform-origin: center center; 
            max-width: 100%;       /* Sprečava sliku da izađe van okvira kontejnera */
            height: auto;          /* Zadržava proporcije slike pri smanjivanju */
        }
        
         body.index-stranica .kreni-animacija .animirana-slika {
            animation: skupiIrotiraj 5s ease-in-out forwards, fadeOutLogo 2.5s ease-in-out 5s forwards; 
        }

        /* FOOTER */
         body.index-stranica .intro-footer { 
            position: fixed; 
            bottom: 15px; 
            width: 100%; 
            text-align: center; 
            z-index: 2; 
            color: rgba(255, 255, 255, 0.4); 
            font-size: 14px; 
            font-family: "Roboto Condensed", sans-serif !important; 
            font-weight: 100;
            letter-spacing: 1px; 
        }

        /* AGE GATE STILOVI */
         body.index-stranica .age-gate-title   {
            font-family: "Roboto Condensed", sans-serif !important; 
            font-size: 20px;
            letter-spacing: 3px;
            font-weight: 600;
            margin-top: 10px;
        }

        /* CSS ANIMACIJE */
        @keyframes skupiIrotiraj { 
            0% { transform: scale(5) rotate(0deg); } 
            100% { transform: scale(1) rotate(360deg); } 
        }
        @keyframes postepenoZatamni { 
            0% { opacity: 0; } 
            100% { opacity: 1; } 
        }
        @keyframes fadeOutLogo { 
            0% { opacity: 1; } 
            100% { opacity: 0; visibility: hidden; } 
        }




/* ==========================================
   1. POČETNA
   ========================================== */

/* 1. RESETOVANJE MARGINA */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

/* 2. STRUKTURA EKRANA */
 body {
    display: grid;
    grid-template-rows: 1fr auto; /* Video sekcija uzima sve, footer samo dno */
    height: 100vh;
    font-family: sans-serif;
    background-color: #000; /* Crna pozadina ako se video sporo učitava */
    }


/* 3. VIDEO SEKCIJA (Čist prozor za video i tekst) */
    .video-section {
            background-color: #000000;

      position: relative;
      width: 100%;
      height: 100%;

      overflow: hidden; /* Ključno: Seče video tačno na ivici footera */
    }

    .bg-video {
            background-color: #000000;

      position: absolute;
      width: 100%;
      height: 100%;

      object-fit: cover; /* Video zadržava proporcije bez rastezanja */
      z-index: 1;
    }

    .video-overlay {
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: 2;
      background: rgba(0, 0, 0, 0.2); /* Blago zatamnjenje videa */
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: white;
      text-align: center;
    }

/* 4. JEDNOSTAVAN FOOTER (Sa providnošću, bez videa iza) */
    .site-footer {
      width: 100%;
      background-color: black; /* 80% vidljivost - promeni u red, blue itd. za test */
      color: gray;
      padding: 20px;
      font-family: "Roboto Condensed", sans-serif!important;
      font-weight: 300;
      text-align: center;
      z-index: 3;
    }

    .footer-links a {
      color: gray;
      text-decoration: none;
      margin: 0 10px;
      letter-spacing: 1px;
      font-size: 14px;
    }
      
      .copyright {
        letter-spacing: 1px;
        font-size: 14px;
      color: gray;
          
      }      

    .footer-links a:hover { 
        color: #fff; 
      }

.modal-content {
     border: 1px solid rgba(255,166,0,1.00)!important;
}

.modal-title  {
    color: goldenrod;
}
.fas.fa-shopping-cart  {
    color: goldenrod;
}

.modal-title h2 {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}
/* ==========================================
   NAVIGACIJA (Roboto Condensed)
   ========================================== */
/* Navigacija fiksirana na vrhu */
.navbar {
    background-color: rgba(33, 37, 41, 0.95) !important;
    padding: 5px 0;
    }

.navbar ul {
   display: flex;         /* Ređa stavke horizontalno */
   list-style: none;      /* Uklanja tačkice */
   padding: 0;
   gap: 20px;             /* DEFINIŠE RAZMAK IZMEĐU LI STAVKI */
}

@media (max-width: 1300px) {
.nav-link {
   padding-left: 10px !important;
   padding-right: 10px !important;
   font-size: 12px;
   letter-spacing: normal;
    }
}

/* Ciljamo sve linkove Bootstrap navigaciji */
.navbar-nav .nav-link {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 300; /* Regular za obične linkove */
    letter-spacing: 1px;
    font-size: 15px;
}

/* Aktivni link (stranica na kojoj se korisnik trenutno nalazi) */
.navbar-nav .nav-link.active {
    font-weight: 500; /* Medium za POČETNA */
    color: white;
}

/* Link preko kojeg korisnik pređe mišem */
.navbar-nav .nav-link:hover {
    font-weight: 500; /* Medium pri prelasku mišem */
    color: white;
}
/* Kontejner za ikonicu i badge da bi na mobilnom stajali zajedno */

/* Wrapperu dajemo fiksnu širinu ikonice da ga ništa ne rasteže */
.cart-wrapper {
    position: relative;
    display: inline-block;
    width: 24px;   /* Širina ikonice korpe */
    height: 24px;  /* Visina ikonice korpe */
    vertical-align: middle;
    line-height: 1;
}

 span.cart-wrapper {
    color: goldenrod;
}


#cart-badge {
    color: #fff !important;
    font-size: 9px !important;
    font-weight: bold;
    /* Savršen krug */
    width: 16px;
    height: 16px;
    line-height: 16px; 
    text-align: center;
    border-radius: 50%;
    /* APSOLUTNO POZICIONIRANJE NA IVICU WRAPPERA */
    position: absolute;
    top: -8px;    /* Ide iznad gornje ivice */
    right: -10px; /* Ide desno van ivice */
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Boja badge-a za korpu da ne odskače previše crvenom, možeš probati zlatnu */
#cart-badge {
    background-color: red;
    color: #fff;
}

.fs-5  {
    color: goldenrod;
}

@media only screen and (max-width: 768px) {
    .button {
    font-size: .7rem;
    letter-spacing: normal;

    }    
}

/* ==========================================
   1. INDEX
   ========================================== */
        
        /* FOOTER */
        .info-footer { 
            position: fixed; 
            bottom: 20px; 
            width: 100%; 
            text-align: center; 
            z-index: 2; 
            color: rgba(255, 255, 255, 1); 
            font-size: 15px; 
            font-family: "Roboto Condensed", sans-serif !important; 
            font-weight: 100;
            letter-spacing: 1px; 
        }

        
        /* CSS ANIMACIJE */
        @keyframes skupiIrotiraj { 
            0% { transform: scale(5) rotate(0deg); } 
            100% { transform: scale(1) rotate(360deg); } 
        }
        @keyframes postepenoZatamni { 
            0% { opacity: 0; } 
            100% { opacity: 1; } 
        }
        @keyframes fadeOutLogo { 
            0% { opacity: 1; } 
            100% { opacity: 0; visibility: hidden; } 
        }
        
/* Stilovi za Cookies baner u donjem levom uglu */
.cookie-banner {
    display: none; /* Sakriveno po defaultu, JS kontroliše prikaz */
    position: fixed;
    bottom: 20px; /* Odmaknuto od dna */
    left: 20px;   /* Smešteno uz levu ivicu */
    width: 380px; /* Fiksna širina za desktop */
    max-width: 90%; /* Sigurnosna margina */
    background-color: #1f2937; /* Tamno siva pozadina */
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-family: sans-serif;
    box-sizing: border-box;
    border-radius: 8px; /* Blago zaobljene ivice za moderan izgled */
    overflow: hidden;
}

.cookie-container {
    padding: 20px;
    display: flex;
    flex-direction: column; /* Tekst i dugme idu jedno ispod drugog */
    align-items: flex-start;
    gap: 15px;
}

.cookie-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-link {
    color: #3b82f6; /* Plavi link */
    text-decoration: underline;
}

.cookie-link:hover {
    color: #60a5fa;
}

.cookie-btn {
    background-color: #10b981; /* Zeleno dugme */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%; /* Dugme se rasteže preko cele širine prozorčića */
    text-align: center;
}

.cookie-btn:hover {
    background-color: #059669; /* Tamnija zelena na hover */
}

/* Prilagođavanje za mobilne uređaje */
@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0; /* Na mobilnom se lepi za ivice ekrana */
    }
    .cookie-container {
        padding: 15px 20px;
    }
}
        
a {
    text-decoration: none;
    color: white;
} 
        
        
/* Osnovni stilovi za footer */
.site-footer {
  background-color: #1a1a1a; /* Tamna moderna pozadina */
  color: #ffffff;
  padding: 40px 20px 20px 20px;
  font-family: sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  border-bottom: 1px solid #333; /* Diskretna linija razdvajanja */
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Donji deo - Poravnanje elemenata */
.footer-bottom {
  display: flex;
  justify-content: space-between; /* Gura tekst levo, a linkove desno */
  align-items: center;
  flex-wrap: wrap; /* Omogućava prelazak u novi red na mobilnom */
  gap: 15px;
  font-size: 0.85rem; /* Malo manji font za pravne linkove */
  color: #b3b3b3; /* Diskretnija siva boja teksta */
}

/* Stilovi za linkove */
.footer-legal-nav {
  display: flex;
  gap: 20px; /* Razmak između linkova */
}

.legal-link {
  color: #b3b3b3;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Efekat kada korisnik pređe mišem preko linka */
.legal-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Responzivnost za mobilne ekrane (ispod 768px) */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column; /* Slaže elemente vertikalno */
    text-align: center;
  }

  .footer-legal-nav {
    flex-direction: column; /* Linkovi idu jedan ispod drugog na mobilnom */
    gap: 10px;
  }
}

/* ==========================================
   1. WEB-SHOP
   ========================================== */

.wines-button {
    text-align: center;
    padding-top: 30px;
}
/* DUGME 'DODAJ U KORPU' */
.button {
  font-family: "Roboto Condensed", sans-serif!important;
  display: inline-block;
  padding: 0.3rem 1.25rem;
  color: white;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.0625rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-left: 3px solid #5a796f;
  border-right: none;
  border-top: none;
  border-bottom: none;
}
.button:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: darkslategray;
  z-index: -2;
}
.button:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: lightgray;
  transition: all 0.3s;
  z-index: -1;
}
.button:hover {
  color: darkslategray;
}
.button:hover:before {
  width: 100%;
}
.btn {
  font-family: "Roboto Condensed", sans-serif!important;
  color: black;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.0625rem;
}

/* GLOBALNI CONTAINER FUTERA */
.site-footer {
    position: relative; /* Ključno: drži dugmad vezana za futer */
    width: 100%;
    background-color: #000000 /* Tamno siva boja sa tvoje slike */
    color: #ffffff;
    padding: 30px 20px; /* Daje prostor unutar futera */
    text-align: center;
    font-family: sans-serif;
}

/* DUGME LEVO (Cookies) */
.cookies-btn {
    position: absolute;
    top: 0;
    left: 40px; /* Odmaknuto od leve ivice ekrana */
    transform: translate(0, -50%); /* Podiže ga tačno pola-pola na ivicu */
    background-color: goldenrod; /* Zlatna boja sa slike */
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 20px; /* Ovalni oblik */
    font-weight: normal;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 10; /* Gura dugme IZNAD pozadine futera da bude vidljivo */
}

/* DUGME DESNO (Na vrh - strelica) */
.go-to-top-btn {
    position: absolute;
    top: 0;
    right: 40px; /* Odmaknuto od desne ivice ekrana */
    transform: translate(0, -50%); /* Podiže ga tačno pola-pola na ivicu */
    background-color: goldenrod;
    color: black; /* Ovo automatski boji Google ikonicu u crno */
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Savršen krug */
    cursor: pointer;
    z-index: 10; /* Gura dugme IZNAD pozadine futera da bude vidljivo */
    
    /* Centriranje ikone unutar kruga */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Veliki baner u donjem levom uglu */
.cookie-banner {
    display: none; /* JS kontroliše prikaz */
    position: fixed;
    bottom: 20px;
    left: 40px;
    width: 350px;
    max-width: 90%;
    background-color: #212529; /* Bootstrap tamna tema */
    z-index: 1050;
    border-radius: 8px;
}

.cookie-container {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

p.cookie-text {
    font-size: 16px;
    line-height: 1.5;
    font-family: 'PT Sans', sans-serif;
    font-weight: 300 !important;
}

#accept-cookies {
    font-family: "Roboto Condensed", sans-serif!important;
    letter-spacing: 2px;
    line-height: 1.5;
    font-weight: 300!important;
}

/* Prilagođavanje za mobilne telefone (opciono, da ne bude preblizu ivice na malim ekranima) */
@media (max-width: 576px) {
    .go-to-top-btn {
        right: 20px; /* Na telefonima ga malo više približavamo ivici */
        width: 40px;  /* Može biti i mrvicu manje na mobilnom */
        height: 40px;
    }
}

/* Malo diskretno dugme koje menja baner na ostalim stranicama */
.cookie-widget-btn {
    font-family: "Roboto Condensed", sans-serif!important;
    display: none; /* Prikazuje se tek nakon klika na "Prihvatam" */
    position: fixed;
    bottom: 20px;
    left: 40px;
    z-index: 1049;
    background-color: goldenrod;
    color: black;
    border: none;
    border-radius: 20px; /* Izgled pilule */
    padding: 10px 16px;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
}

.cookie-widget-btn:hover {
    background-color: goldenrod;
    color: black;
    transform: scale(1.1);;
}

/* Prilagođavanje za mobilne uređaje */
@media (max-width: 576px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    .cookie-widget-btn {
        bottom: 10px;
        left: 10px;
        padding: 4px 10px;
        font-size: 11px;
    }
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;

  /* KLJUČNE LINIJE KOJE PRETVARAJU TEKST U IKONU: */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
}

/* Modal korpe */

document.addEventListener("DOMContentLoaded", function() {
    fetch('korpa.html')
        .then(response => response.text())
        .then(html => {
            // Ubacuje HTML modala na sam kraj <body> taga
            document.body.insertAdjacentHTML('beforeend', html);
        })
        .catch(error => console.error('Greška pri učitavanju modala:', error));
});

/* Univerzalno pravilo za naslov u svakom modalu na sajtu */
.modal h1, .modal h2, .modal h3, .modal h4, .modal h5, .modal h6, .modal-title {
    font-family: Georgia, serif !important;
    color: #722F37 !important; /* Vinska crvena boja */
    font-weight: bold !important;
}


