/* Header-specific styles for Event Motion Life */

.eml-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.eml-header__inner {
  min-height: 64px;
}

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

.eml-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eml-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 0, rgba(255, 255, 255, 0.3), transparent 55%),
              linear-gradient(135deg, #ff7a1a, #ffb347);
  box-shadow: var(--shadow-glow-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eml-header__logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #050608;
}

.eml-header__logo-icon .fa-dice {
  font-size: 1.15rem;
}

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

.eml-header__logo-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eml-header__logo-subtitle {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Navigation layout */

.eml-header__nav {
  margin-left: auto;
}

.eml-header__nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eml-header__nav-item a {
  font-size: 0.85rem;
}

.eml-header__nav-cta {
  padding-inline: 18px;
  padding: 5px 20px !important;
}

/* Mobile menu button */

.eml-header__menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--color-text-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.eml-header__menu-toggle-box {
  width: 22px;
  height: 18px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.eml-header__menu-toggle-line {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9b3b, #ff7a1a);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.eml-header__menu-toggle[aria-expanded="true"] .eml-header__menu-toggle-line:first-child {
  transform: translateY(8px) rotate(45deg);
}

.eml-header__menu-toggle[aria-expanded="true"] .eml-header__menu-toggle-line:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.eml-header__menu-toggle[aria-expanded="true"] .eml-header__menu-toggle-text::after {
  content: "";
}

/* Responsive behaviour */

@media (max-width: 900px) {
  .eml-header__menu-toggle {
    display: inline-flex;
  }

  .eml-header__nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: radial-gradient(circle at top, rgba(255, 122, 26, 0.12), transparent 55%),
                rgba(5, 6, 8, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
  }

  .eml-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
    gap: 14px;
  }

  .eml-header__nav-item a {
    font-size: 0.9rem;
  }

  .eml-header__nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

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

  .eml-header--menu-open {
    /* Prevent body scroll is handled in JS with body class; this keeps header on top */
  }
}

@media (max-width: 520px) {
  .eml-header__logo-subtitle {
    display: none;
  }
}
