/* Header styles for Velvet Venue */

.vv-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 250, 251, 0.88));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.vv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
}

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

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

.vv-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, #e0faff, var(--color-primary));
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.35);
  position: relative;
}

.vv-header__logo-mark::after {
  content: "V";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: #ffffff;
}

.vv-header__logo-text {
  display: flex;
  flex-direction: column;
}

.vv-header__logo-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vv-header__logo-subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Navigation */

.vv-header__nav {
  display: flex;
}

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

.vv-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-soft);
  padding-inline: 0.25rem;
  padding-block: 0.2rem;
  transition: color var(--transition-base);
}

.vv-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.vv-header__nav-link:hover,
.vv-header__nav-link:focus-visible {
  color: var(--color-gray-900);
}

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

.vv-header__nav-item--highlight .vv-header__nav-link--cta {
  padding-inline: 1rem;
  padding-block: 0.4rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.35);
}

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

.vv-header__nav-item--highlight .vv-header__nav-link--cta:hover,
.vv-header__nav-item--highlight .vv-header__nav-link--cta:focus-visible {
  transform: translateY(-1px);
}

/* Mobile toggle */

.vv-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

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

.vv-header__toggle[aria-expanded="true"] .vv-header__toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.vv-header__toggle[aria-expanded="true"] .vv-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.vv-header__toggle[aria-expanded="true"] .vv-header__toggle-bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile layout */

@media (max-width: 768px) {
  .vv-header__inner {
    padding-block: var(--space-2);
  }

  .vv-header__toggle {
    display: inline-flex;
  }

  .vv-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 64px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
  }

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

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

  .vv-header__nav-link,
  .vv-header__nav-item--highlight .vv-header__nav-link--cta {
    width: 100%;
    padding-block: 0.75rem;
    padding-inline: 0.5rem;
    color: #e5e7eb;
  }

  .vv-header__nav-link::after {
    display: none;
  }

  .vv-header__nav-item--highlight .vv-header__nav-link--cta {
    justify-content: center;
    margin-top: var(--space-2);
  }

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

  .vv-header__logo-subtitle {
    display: none;
  }
}

@media (max-width: 480px) {
  .vv-header__logo-title {
    font-size: 1.05rem;
  }

  .vv-header__logo-mark {
    width: 34px;
    height: 34px;
  }
}
