/* Header styles for MidnightLoungeBar */
.mlb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #05060b 0%, #1b1f2a 40%, #3c0b0b 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.mlb-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mlb-header__brand {
  display: flex;
  align-items: center;
}

.mlb-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
}

.mlb-header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffdf6b 0%, #ffb400 35%, #ff4b3e 80%);
  color: #05060b;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.mlb-header__logo-text {
  font-family: "Oswald", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.mlb-header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  color: inherit;
}

.mlb-header__toggle-bar {
  width: 1.4rem;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mlb-header__nav {
  position: relative;
}

.mlb-header__nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mlb-header__nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: #f7f7f7;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.mlb-header__nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0.9rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb400, #ff4b3e);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: center;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.mlb-header__nav-link:hover,
.mlb-header__nav-link:focus-visible {
  background-color: rgba(255,255,255,0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.mlb-header__nav-link:hover::after,
.mlb-header__nav-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.mlb-header__nav-item--cta .mlb-header__nav-link--cta {
  background: linear-gradient(90deg, #ffb400, #ff4b3e);
  color: #05060b;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 10px 20px rgba(0,0,0,0.45);
}

.mlb-header__nav-item--cta .mlb-header__nav-link--cta:hover,
.mlb-header__nav-item--cta .mlb-header__nav-link--cta:focus-visible {
  background: linear-gradient(90deg, #ffe27a, #ff7b5c);
  transform: translateY(-2px);
}

.mlb-header__nav-item--cta .mlb-header__nav-link--cta::after {
  display: none;
}

.mlb-header a:focus-visible,
.mlb-header button:focus-visible {
  outline: 2px solid #ffdf6b;
  outline-offset: 3px;
}

/* Mobile layout */
@media (max-width: 768px) {
  .mlb-header__inner {
    padding-inline: 1rem;
  }

  .mlb-header__logo-text {
    font-size: 1rem;
  }

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

  .mlb-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 3.5rem;
    background: rgba(5, 6, 11, 0.97);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .mlb-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1.1rem;
    gap: 0.2rem;
  }

  .mlb-header__nav-link {
    width: 100%;
    padding-block: 0.5rem;
  }

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

  .mlb-header--menu-open {
    overflow: hidden;
  }

  .mlb-header__toggle--open .mlb-header__toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .mlb-header__toggle--open .mlb-header__toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .mlb-header__toggle--open .mlb-header__toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* Desktop layout */
@media (min-width: 769px) {
  .mlb-header__toggle {
    display: none;
  }

  .mlb-header__nav {
    display: block;
  }
}
