/* Header styles for Event Lounge Hub */

.elh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: radial-gradient(circle at top left, rgba(255, 51, 102, 0.12), transparent 55%),
              linear-gradient(120deg, rgba(5, 7, 18, 0.96), rgba(5, 7, 18, 0.9));
  border-bottom: 1px solid var(--color-border-subtle);
}

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

.elh-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.elh-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.elh-header__logo::after {
  display: none;
}

.elh-header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 0, #ff8a9e 0%, var(--color-primary) 40%, var(--color-primary-strong) 100%);
  color: #050307;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
}

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

.elh-header__logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* Navigation */

.elh-header__nav {
  display: flex;
  align-items: center;
}

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

.elh-header__nav-link {
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
}

.elh-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-strong));
  transition: width var(--transition-base);
}

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

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

.elh-header__nav-item--highlight .elh-header__nav-link {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 10% 0%, rgba(255, 138, 158, 0.9) 0%, var(--color-primary) 40%, var(--color-primary-strong) 100%);
  color: #050307;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.elh-header__nav-link--cta {
  box-shadow: 0 14px 30px rgba(255, 51, 102, 0.5);
}

.elh-header__nav-item--highlight .elh-header__nav-link:hover,
.elh-header__nav-item--highlight .elh-header__nav-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-primary);
}

/* Mobile toggle */

.elh-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background: rgba(5, 7, 18, 0.9);
  cursor: pointer;
}

.elh-header__toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.elh-header__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform var(--transition-fast), opacity var(--transition-fast), translate var(--transition-fast);
}

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

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

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

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

/* Mobile layout */

@media (max-width: 768px) {
  .elh-header__inner {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

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

  .elh-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    transform-origin: top;
    transform: scaleY(0.95);
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 7, 18, 0.98), rgba(5, 7, 18, 0.97));
    border-bottom: 1px solid var(--color-border-subtle);
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

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

  .elh-header__nav-link {
    width: 100%;
  }

  .elh-header__nav-item--highlight .elh-header__nav-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .elh-header__nav--open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }
}

@media (max-width: 480px) {
  .elh-header__logo-tagline {
    display: none;
  }
}
