/* Header styles for Luxe Event Craft */

.lec-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--navbar-height);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.88));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.lec-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

/* Brand */
.lec-header__brand-wrapper {
  display: flex;
  align-items: center;
}

.lec-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.lec-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 0, rgba(245, 196, 82, 0.6), transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(185, 28, 28, 0.7), rgba(2, 6, 23, 1));
  border: 1px solid rgba(245, 196, 82, 0.7);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lec-header__logo-chip {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle, #f5c452 0, #b45309 60%, #1e293b 100%);
  box-shadow: 0 0 16px rgba(245, 196, 82, 0.8);
}

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

.lec-header__brand-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.lec-header__brand-subtitle {
  font-size: 0.7rem;
  color: var(--color-text-soft);
}

/* Navigation */
.lec-header__nav {
  margin-left: auto;
}

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

.lec-header__nav-link {
  position: relative;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lec-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--transition-med);
}

.lec-header__nav-link:hover,
.lec-header__nav-link:focus-visible {
  color: var(--color-primary-strong);
}

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

/* CTA */
.lec-header__cta-wrapper {
  margin-left: var(--space-4);
}

.lec-header__cta {
  white-space: nowrap;
}

/* Mobile toggle */
.lec-header__toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at 0 0, rgba(245, 196, 82, 0.16), rgba(15, 23, 42, 0.98));
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lec-header__toggle-bar {
  position: absolute;
  width: 54%;
  height: 2px;
  border-radius: 999px;
  background-color: var(--gray-200);
  transition: transform var(--transition-med), opacity var(--transition-fast), top var(--transition-med), bottom var(--transition-med);
}

.lec-header__toggle-bar:nth-child(1) {
  top: 13px;
}

.lec-header__toggle-bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.lec-header__toggle-bar:nth-child(3) {
  bottom: 13px;
}

.lec-header__toggle[aria-expanded="true"] .lec-header__toggle-bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.lec-header__toggle[aria-expanded="true"] .lec-header__toggle-bar:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Mobile layout */
@media (max-width: 767.98px) {
  .lec-header__inner {
    gap: var(--space-2);
  }

  .lec-header__brand-subtitle {
    display: none;
  }

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

  .lec-header__nav {
    position: fixed;
    inset: var(--navbar-height) 0 auto 0;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-med), opacity var(--transition-med), visibility var(--transition-med);
  }

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

  .lec-header__nav-link {
    font-size: 0.9rem;
  }

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

  .lec-header__cta-wrapper {
    display: none;
  }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 991.98px) {
  .lec-header__nav-list {
    gap: var(--space-4);
  }

  .lec-header__brand-subtitle {
    display: none;
  }
}

/* Focus styles for key elements */
.lec-header__toggle:focus-visible,
.lec-header__brand:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
