/* header.css */

/* Glavni header bar */
.header-bar {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1000;
  width: 100%;
}

/* Gornji deo: logo + toggle */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

/* Navigacija */
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: transparent;
  max-width: 1200px;   /* kontrola 分irine */
  margin: 0 auto;      /* centriraj u ekranu */
}


/* Logo */
.header-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain; /* zadrži proporcije unutar boxa */
}


/* Search input */
.search-input {
  border-radius: 50px;
  padding: 10px 20px;
  border: none;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13,26,64,0.3);
}

/* Search button */
.search-button {
  border-radius: 50px;
  padding: 10px 20px;
  background: linear-gradient(to right, #0d1a40, #1a2f60);
  color: #fff;
  border: none;
  transition: background 0.3s ease;
}
.search-button:hover {
  background: linear-gradient(to right, #1a2f60, #0d1a40);
}

/* CTA dugmad */
.cta-fill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0d1a40;
  background-color: #fff;
  border: none;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.cta-fill:hover {
  background: linear-gradient(to right, #0d1a40, #1a2f60);
  color: #fff;
}

/* Search form */
.search-form {
  position: relative;
  max-width: 600px;
  width: 100%;
}

/* Dropdown rezultati pretrage */
#searchResults {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-width: 650px;
  background-color: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  overflow-y: auto;
  max-height: 320px;
}

/* Hamburger dugme */
.navbar-toggler {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #0d1a40;
  transition: color 0.3s ease;
}
.navbar-toggler:hover {
  color: #1a2f60;
}

/* Responsive */
@media (max-width: 768px) {
  .header-nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    justify-content: flex-start; /* na mobilnom ide u kolonu */
    align-items: flex-start;
  }
}
