/* Header styles for Veliora HU - builds on base.css */

.veliora-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.98), rgba(5, 6, 10, 0.88), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.veliora-header__brand {
  display: flex;
  align-items: center;
}

.veliora-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--gray-100);
}

.veliora-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 10%, rgba(228, 197, 107, 0.9), rgba(201, 165, 90, 0.1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
}

.veliora-header__logo-icon {
  color: #1a1309;
  font-size: 1.1rem;
}

.veliora-header__text {
  display: flex;
  flex-direction: column;
}

.veliora-header__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.veliora-header__subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Navigation */

.veliora-header__nav {
  display: flex;
}

.veliora-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.veliora-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.1rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.veliora-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(201, 165, 90, 0.8), rgba(105, 27, 48, 0.8));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.veliora-header__nav-link:hover::after,
.veliora-header__nav-link:focus-visible::after {
  transform: scaleX(1);
}

.veliora-header__nav-item--cta .veliora-header__nav-link--cta {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 165, 90, 0.7);
  background: linear-gradient(135deg, rgba(201, 165, 90, 0.1), rgba(201, 165, 90, 0.02));
  color: var(--gray-100);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
}

.veliora-header__nav-item--cta .veliora-header__nav-link--cta::after {
  display: none;
}

.veliora-header__nav-item--cta .veliora-header__nav-link--cta:hover {
  background: linear-gradient(135deg, #e4c56b, #c18e3f);
  color: #1a1309;
}

/* Mobile toggle */

.veliora-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(5, 6, 10, 0.8);
  align-items: center;
  justify-content: center;
}

.veliora-header__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--gray-100);
  transition: transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-base);
}

.veliora-header__toggle-bar + .veliora-header__toggle-bar {
  margin-top: 4px;
}

.veliora-header__toggle--open .veliora-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.veliora-header__toggle--open .veliora-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.veliora-header__toggle--open .veliora-header__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Overlay for mobile nav */

.veliora-header__overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(201, 165, 90, 0.1), transparent 60%), rgba(5, 6, 10, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  z-index: 40;
}

.veliora-header__overlay--active {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive layout */

@media (max-width: 899.98px) {
  .veliora-header__toggle {
    display: inline-flex;
    flex-direction: column;
    z-index: 9999;
  }

  .veliora-header__nav {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    background: radial-gradient(circle at top, rgba(201, 165, 90, 0.08), transparent 55%), var(--color-bg-elevated);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
    box-shadow: var(--shadow-soft);
    z-index: 45;
  }

  .veliora-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4) var(--space-5) var(--space-6);
  }

  .veliora-header__nav-item {
    width: 100%;
  }

  .veliora-header__nav-link {
    width: 100%;
    padding: 0.75rem 0;
  }

  .veliora-header__nav--open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (min-width: 900px) {
  .veliora-header__overlay {
    display: none;
  }
}
