/* Header styles for Travel Play Venue */

.tpv-header {
  position: sticky;
  top: 0;
  z-index: var(--z-overlay);
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.18), transparent 55%),
              radial-gradient(circle at 100% 0, rgba(139, 92, 246, 0.25), transparent 55%),
              rgba(5, 8, 20, 0.96);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.tpv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

/* Brand / logo */
.tpv-header__brand {
  display: flex;
  align-items: center;
}

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

.tpv-header__logo-mark {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, rgba(59, 130, 246, 0.4), transparent 60%),
              radial-gradient(circle at 70% 100%, rgba(251, 191, 36, 0.35), transparent 70%),
              rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow-neon-blue);
}

.tpv-header__logo-chip {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.7), 0 0 12px rgba(251, 191, 36, 0.4);
  position: relative;
}

.tpv-header__logo-chip::before,
.tpv-header__logo-chip::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px dashed rgba(148, 163, 184, 0.7);
}

.tpv-header__logo-chip::after {
  inset: 6px;
  border-style: solid;
  border-color: rgba(59, 130, 246, 0.95);
  opacity: 0.9;
}

.tpv-header__logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tpv-header__logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.tpv-header__logo-tagline {
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

/* Navigation */
.tpv-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

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

.tpv-header__nav-link {
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-block: 0.2rem;
}

.tpv-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #fbbf24);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
  transition: width var(--transition-base);
}

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

.tpv-header__nav-link:hover::after,
.tpv-header__nav-link:focus-visible::after {
  width: 100%;
}

.tpv-header__cta-wrap {
  margin-left: var(--space-4);
}

.tpv-header__cta {
  font-size: 0.85rem;
}

/* Mobile toggle */
.tpv-header__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-50);
}

.tpv-header__toggle-box {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, rgba(59, 130, 246, 0.4), transparent 60%), rgba(15, 23, 42, 0.96);
}

.tpv-header__toggle-line {
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform var(--transition-base), opacity var(--transition-base), top var(--transition-base), bottom var(--transition-base);
}

.tpv-header__toggle-line--top {
  top: 0.8rem;
}

.tpv-header__toggle-line--middle {
  top: 1.05rem;
}

.tpv-header__toggle-line--bottom {
  bottom: 0.8rem;
}

.tpv-header__toggle-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-soft);
}

/* Overlay for mobile menu */
.tpv-header__overlay {
  display: none;
}

/* Mobile layout */
@media (max-width: 768px) {
  .tpv-header__inner {
    min-height: 3.75rem;
  }

  .tpv-header__logo-tagline {
    display: none;
  }

  .tpv-header__nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    margin-top: 4.1rem;
    padding-bottom: var(--space-6);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.28), transparent 55%),
                radial-gradient(circle at 100% 0, rgba(139, 92, 246, 0.32), transparent 55%),
                rgba(5, 8, 20, 0.98);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
  }

  .tpv-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: var(--layout-gutter-x);
    gap: var(--space-3);
  }

  .tpv-header__nav-link {
    font-size: 1rem;
  }

  .tpv-header__cta-wrap {
    margin: var(--space-4) var(--layout-gutter-x) 0;
  }

  .tpv-header__cta {
    width: 100%;
    justify-content: center;
  }

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

  .tpv-header__overlay {
    position: fixed;
    inset: 0;
    /*background: rgba(15, 23, 42, 0.75);*/
    /*backdrop-filter: blur(8px);*/
    /*-webkit-backdrop-filter: blur(8px);*/
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    z-index: calc(var(--z-overlay) - 1);
    display: block;
  }

  .tpv-header--menu-open .tpv-header__nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .tpv-header--menu-open .tpv-header__overlay {
    opacity: 1;
    visibility: visible;
  }

  .tpv-header--menu-open .tpv-header__toggle-line--top {
    top: 1.05rem;
    transform: rotate(45deg);
  }

  .tpv-header--menu-open .tpv-header__toggle-line--middle {
    opacity: 0;
  }

  .tpv-header--menu-open .tpv-header__toggle-line--bottom {
    bottom: 1.05rem;
    transform: rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .tpv-header__logo-name {
    font-size: 0.8rem;
  }

  .tpv-header__logo-mark {
    width: 2.1rem;
    height: 2.1rem;
  }
}
