
/* ---------- Navigation ---------- */

/* Animacija fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fadeIn { animation: fadeIn 0.3s ease-out forwards; }

/* ---------- Desktop linkovi ---------- */
.nav-link {
  color: white;
  font-weight: 400;
  font-size: 1rem;
  text-decoration: none;
  padding-bottom: 4px;
  margin: 0 0.01rem;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

/* Hover efekti za desktop linkove */
.nav-link:hover,
.group:hover > .nav-link {
  color: #FACC15; /* Tailwind yellow-400 */
  border-bottom: 2px solid #FACC15;
}


/* Dropdown roditeljski linkovi (.group) */
.group > .nav-link {
  display: inline-flex;
  align-items: center;
  padding-bottom: 4px;
}

/* Navigaciona traka */
nav {
  display: flex;
  align-items: center;
  height: auto;
}

/* ---------- Dropdown meni ---------- */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  color: #1f1f1f;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

/* Dropdown prikazivanje na hover */
.group:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Linkovi u dropdownu */
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #2a4d8f;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #2a4d8f;
  color: #FFD700;
}



/* ---------- Mobilni meni full screen ---------- */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #004080; /* tamno plava */
  z-index: 1000;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  padding-top: 4rem; /* prostor za close dugme / logo */
}

/* Kada je meni otvoren */
#mobile-menu.open { display: flex; }

/* Mobilni linkovi */
.nav-link-mobile {
  display: block;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: white !important;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
  font-family: 'serif', Georgia, Times, "Times New Roman"; /* isto kao tvoj span */
}

/* Hover efekti za linkove */
.nav-link-mobile:hover {
  color: #FFD700 !important;
  background-color: #003366;
}

/* Podmeni container */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  width: 100%;
  flex-direction: column;
  background-color: #004080;
  margin: 0;
  padding-left: 1rem;
}

/* Kada je podmeni otvoren */
.mobile-submenu.open { max-height: 500px; }

/* Linkovi u podmeniju */
.mobile-submenu a {
  display: block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: white !important;
  font-family: 'serif', Georgia, Times, "Times New Roman"; /* isto kao tvoj span */
}

.mobile-submenu a:hover {
  color: #FFD700 !important;
  background-color: #003366;
}

/* Toggle dugme za podmeni */
.mobile-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: white !important;
  background-color: transparent;
  border: none;
  cursor: pointer;
  gap: 0.5rem;
}

/* Centriranje zastava u mobilnom meniju */
#mobile-menu .flex.space-x-2 {
  justify-content: center; /* centriranje horizontalno */
  margin-top: 1rem;       /* opcionalno malo razmaka od linkova iznad */
}


.mobile-submenu-toggle:hover { color: #FFD700 !important; }

/* Strelica rotacija */
.mobile-submenu-toggle.open svg { transform: rotate(90deg); }

/* ---------- Logo animacija ---------- */
.logo-img { transition: transform 0.3s ease-in-out; }
.logo-img:hover { transform: scale(1.1); }

/* ---------- Site title ---------- */
.site-title { transition: color 0.3s ease, transform 0.3s ease; }
.site-title:hover { color: #FFD700; transform: scale(1.1); }
