/* Header styles for VECERNI SCENA - Floating Glass Capsule (Premium Editorial) */

.vs-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: calc(100% - 48px);
  max-width: 1200px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px) saturate(120%);
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(250,246,240,0.6));
  box-shadow: 0 12px 40px rgba(15,23,36,0.06);
  border: 1px solid rgba(15,23,36,0.06);
}

.vs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--space-3) + 2px) var(--space-4);
  gap: var(--space-4);
}

.vs-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.vs-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.vs-header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefc, var(--color-primary));
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.vs-header__logo-text {
  display: flex;
  flex-direction: column;
}

.vs-header__logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vs-header__logo-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.vs-header__nav {
  display: flex;
  align-items: center;
  justify-content: center; /* centered links for the capsule style */
  gap: var(--space-6);
  flex: 1;
}

.vs-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: 0 auto; /* center the list inside the nav */
}

.vs-header__nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding-block: 0.3rem;
}

.vs-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(181,141,75,0.9), rgba(181,141,75,0.6));
  transition: width var(--transition-base);
}

.vs-header__nav-link:hover::after,
.vs-header__nav-link:focus-visible::after {
  width: 100%;
}

.vs-header__nav-link:hover,
.vs-header__nav-link:focus-visible {
  color: var(--color-text);
}

.vs-header__cta-wrapper {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.vs-header__cta {
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  background: linear-gradient(180deg, var(--color-primary), #a1763a);
  color: #fff;
  box-shadow: 0 6px 18px rgba(181,141,75,0.12);
}

.vs-header__toggle {
  margin-left: 12px;
  color: var(--color-text);
}

.vs-header__toggle span {
  background-color: var(--color-text);
}

/* Hamburger toggle visuals */
.vs-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
}

.vs-header__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.vs-header__cta-mobile {
  display: none;
  width: 100%;
}

.vs-header__toggle {
  flex-direction: column;
  gap: 5px;
}

.vs-header__toggle span + span {
  margin-top: 0;
}

.vs-header__toggle--active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.vs-header__toggle--active span:nth-child(2) {
  opacity: 0;
}

.vs-header__toggle--active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile layout */

@media (max-width: 768px) {
  .vs-header {
    position: relative;
    top: 0;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: none;
    border-radius: 0;
    background: var(--color-surface);
    box-shadow: none;
    border: none;
  }

  .vs-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .vs-header__brand {
    flex: 1;
    min-width: 0;
  }

  .vs-header__logo-link {
    max-width: 100%;
    min-width: 0;
  }

  .vs-header__logo-text {
    min-width: 0;
  }

  .vs-header__logo-name {
    font-size: clamp(0.8rem, 3.2vw, 1.05rem);
    line-height: 1.2;
  }

  .vs-header__logo-tagline {
    font-size: clamp(0.62rem, 2.4vw, 0.72rem);
    line-height: 1.3;
  }

  .vs-header__toggle {
    margin-left: 0;
    flex-shrink: 0;
  }

  .vs-header__nav {
    position: fixed;
    top: var(--vs-header-height, 64px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: calc(100dvh - var(--vs-header-height, 64px));
    max-height: calc(100dvh - var(--vs-header-height, 64px));
    z-index: 1000;
    flex: none;
    display: flex;
    box-sizing: border-box;
    background: var(--color-surface);
    padding: var(--space-6) var(--space-4) var(--space-8);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-6);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vs-header__nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
  }

  .vs-header__nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(15, 23, 36, 0.08);
  }

  .vs-header__nav-item:last-child {
    border-bottom: none;
  }

  .vs-header__nav-link {
    display: block;
    width: 100%;
    padding: var(--space-4) 0;
    font-size: 1rem;
    color: var(--color-text);
  }

  /* Desktop CTA hidden on mobile (we show .vs-header__cta-mobile inside nav) */
  .vs-header__cta-wrapper { display: none; }

  .vs-header__cta {
    width: 100%;
    justify-content: center;
  }

  .vs-header__cta-mobile {
    display: block;
    width: 100%;
    margin-top: auto;
    padding-top: var(--space-4);
  }

  .vs-header__toggle {
    display: inline-flex;
  }

  .vs-header__nav--open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .vs-header--menu-open {
    z-index: 1001;
  }

  .vs-header--menu-open .vs-header__toggle {
    position: relative;
    z-index: 1002;
  }

  .vs-header__toggle--active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .vs-header__toggle--active span:nth-child(2) {
    opacity: 0;
  }

  .vs-header__toggle--active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (min-width: 769px) {
  .vs-header__toggle {
    display: none;
  }
}
