/* Persistent burger menu — fixed button + slide-in drawer */

.nav-fab {
  position: fixed;
  top: calc(var(--s-3) + env(safe-area-inset-top, 0));
  right: calc(var(--s-3) + env(safe-area-inset-right, 0));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border-hi);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  z-index: 7900;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
  box-shadow: var(--shadow-md);
}
.nav-fab:hover { background: var(--color-surface); }
.nav-fab:active { transform: scale(0.96); }
.nav-fab span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

/* Live-now indicator on the burger button */
.nav-fab--live { border-color: rgba(255,59,48,0.6); box-shadow: var(--glow-live), var(--shadow-md); }
.nav-fab__live-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-live);
  box-shadow: 0 0 8px var(--color-live);
  animation: pulse 1.4s var(--ease-out) infinite;
}

/* Live now link inside the drawer */
.nav-drawer__live {
  display: flex !important;
  align-items: center;
  gap: var(--s-2);
  background: rgba(255,59,48,0.12);
  border: 1px solid rgba(255,59,48,0.4);
  color: var(--color-live) !important;
  text-transform: uppercase;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  border-radius: var(--r-md);
  padding: var(--s-3) !important;
  margin: 0 !important;
}
.nav-drawer__live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-live);
  box-shadow: 0 0 8px var(--color-live);
  animation: pulse 1.4s var(--ease-out) infinite;
  flex: 0 0 auto;
}

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out);
  z-index: 7950;
}
.nav-overlay--on {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 320px);
  background: var(--color-bg-elev);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  z-index: 8000;
  transform: translateX(100%);
  transition: transform var(--t-med) var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: calc(var(--s-5) + env(safe-area-inset-top, 0))
           calc(var(--s-5) + env(safe-area-inset-right, 0))
           calc(var(--s-5) + env(safe-area-inset-bottom, 0))
           var(--s-5);
  overflow-y: auto;
}
.nav-drawer--on {
  transform: translateX(0);
}

.nav-drawer__close {
  position: absolute;
  top: calc(var(--s-3) + env(safe-area-inset-top, 0));
  right: calc(var(--s-3) + env(safe-area-inset-right, 0));
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-border-hi);
  color: var(--color-text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.nav-drawer__close:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--s-4);
}
.nav-drawer__logo {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  flex: 0 0 auto;
}
.nav-drawer__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin: 0;
}

.nav-drawer__section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--s-5);
}
.nav-drawer__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 var(--s-2);
}

.nav-drawer__section a {
  display: block;
  padding: var(--s-3);
  margin: 0 calc(var(--s-3) * -1);
  border-radius: var(--r-md);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.nav-drawer__section a:hover {
  background: var(--color-surface);
  color: var(--color-gold);
}

.nav-drawer__foot {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--color-border);
  text-align: center;
}
