/* Header styles for EVENT PATH HUB */

.eph-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(5, 8, 20, 0.92), rgba(13, 18, 36, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* Brand */
.eph-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

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

.eph-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 0% 0%, #ff8a3d, var(--color-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-primary);
  position: relative;
  overflow: hidden;
}

.eph-header__logo-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.eph-header__brand-text {
  display: flex;
  flex-direction: column;
}

.eph-header__site-name {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eph-header__site-tagline {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Nav */
.eph-header__nav {
  margin-left: auto;
}

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

.eph-header__nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.35rem 0.1rem;
}

.eph-header__nav-link::after {
  bottom: -0.25rem;
}

.eph-header__nav-link:hover,
.eph-header__nav-link:focus-visible {
  color: var(--color-text);
}

.eph-header__nav-item--cta .eph-header__nav-link::after {
  content: none;
}

.eph-header__nav-link--cta {
  font-size: var(--font-size-xs);
  padding-inline: 1.4rem;
  padding-block: 0.55rem;
}

/* Mobile toggle */
.eph-header__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--color-text);
  background-color: rgba(5, 8, 20, 0.6);
  cursor: pointer;
}

.eph-header__toggle:focus-visible {
  outline: 2px solid var(--color-success);
  outline-offset: 3px;
}

.eph-header__toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.eph-header__toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.eph-header__toggle-text {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Open state */
.eph-header--menu-open .eph-header__toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.eph-header--menu-open .eph-header__toggle-line:nth-child(2) {
  opacity: 0;
}

.eph-header--menu-open .eph-header__toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 880px) {
  .eph-header__toggle {
    display: inline-flex;
  }

  .eph-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: radial-gradient(circle at 0% 0%, #1a1830, #050814 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  }

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

  .eph-header__nav-link {
    font-size: var(--font-size-base);
  }

  .eph-header--menu-open .eph-header__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleY(1);
  }
}

@media (max-width: 520px) {
  .eph-header__site-tagline {
    display: none;
  }
}
