/* ======================
   Reset & Global
   ====================== */
html, body, header.site-header {
  margin: 0;
  padding: 0;
}
body {
  background-color: white;
  color: white;
  font-family: sans-serif;
}

.container {
  background-color: white;
}

/* ======================
   Full-Screen Banner
   ====================== */
.header-banner {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 600px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.header-banner .banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ======================
   Overlay Content (1170px container)
   ====================== */
.banner-content {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1170px;
  max-width: 100%;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

/* ======================
   Banner Top Row (Categories + Actions)
   ====================== */
.banner-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-categories {
  display: flex;
  gap: 16px;
}
.banner-categories a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

/* ======================
   Banner Actions (Add + Profile/Dropdown)
   ====================== */
.banner-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-add,
.btn-profile-link {
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none !important;
  outline: none;
  min-height: 40px; /* Silom ista visina! */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1.2;
}

/* Profilna u dugmetu */
.profile-avatar-small {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #fff;
  background: #222;
  margin-left: 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.11);
  vertical-align: middle;
}

/* Gasimo underline kad je <a> */
a.btn-add, a.btn-profile-link {
  text-decoration: none !important;
  color: #fff;
}

/* Dodatno za hover */
.btn-add:hover, .btn-profile-link:hover {
  background: rgba(0,0,0,0.8);
}


.btn-add {
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-weight: 600;
  display: flex;
  align-items: center;
  height: 42px;
}
.btn-add:hover { background: rgba(0,0,0,0.8); }

.profile-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
}

/* Avatar + strelica */
.profile-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  outline: none;
}

.profile-avatar-small {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #fff;
  background: #222;
  box-shadow: 0 1px 6px rgba(0,0,0,0.13);
  display: block;
  transition: box-shadow 0.18s;
}
.profile-dropdown-trigger:hover .profile-avatar-small {
  box-shadow: 0 2px 12px #2563eb33;
}

.dropdown-arrow {
  font-size: 1.1em;
  color: #c8d1df;
  margin-left: 1px;
  transition: transform 0.22s;
  pointer-events: none;
}
.profile-dropdown-wrapper.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* =============== Profile Dropdown =============== */
.profile-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 140px;
  background: #23272f;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  border-radius: 7px;
  padding: 0;
  z-index: 22;
}
.profile-dropdown a {
  color: #fff;
  padding: 14px 18px;
  display: block;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid #2f3642;
  transition: background 0.2s;
}
.profile-dropdown a:last-child { border-bottom: 0; }
.profile-dropdown a:hover { background: #313748; }
.profile-dropdown-wrapper.open .profile-dropdown {
  display: block;
}

/* ======================
   Banner Bottom Row (Logo + Menu)
   ====================== */
.banner-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.banner-bottom-row .banner-logo img {
  max-height: 80px;
  display: block;
}
.banner-bottom-row .banner-menu .main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}
.banner-bottom-row .banner-menu .main-nav li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

/* ======================
   Responsive
   ====================== */
@media (max-width: 1200px) {
  .banner-content { width: 100%; padding: 0 20px; }
}
@media (max-width: 900px) {
  .banner-content { width: 100%; padding: 0 10px; }
}
@media (max-width: 768px) {
  .banner-content { gap: 12px; }
  .banner-bottom-row .banner-logo img { max-height: 60px; }
  .btn-add { padding: 7px 12px; font-size: 0.92rem; }
  .banner-categories { flex-wrap: wrap; gap: 8px; }
  .banner-bottom-row .banner-menu .main-nav { flex-wrap: wrap; gap: 12px; }
  .banner-top-row,
  .banner-logo-actions,
  .banner-bottom-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .profile-avatar-small { width: 32px; height: 32px; }
  .profile-dropdown { min-width: 110px; }
}
