/* ================================================================
   FORCE FEST 2K26 - MOBILE NAVIGATION
   ff-mobile-menu.css

   Scope: hamburger icon · backdrop · slide-in drawer panel
   Reuses the --p3-* design tokens already defined by
   forcefest-pass3.css (navbar/hero/buttons) so this component
   stays visually native to the rest of the site.

   Loaded last so it owns the final word on this component,
   without needing to touch style.css / forcefest-pass3.css.
   ================================================================ */

:root {
  --ff-mm-w: min(88vw, 360px);
  --ff-mm-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ff-mm-speed: 0.5s;
  --ff-mm-speed-fast: 0.28s;
} /* ===== CLEAN HAMBURGER ===== */

.ff-menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none !important;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  flex-shrink: 0;
}
.ff-menu-toggle-line {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}
.ff-menu-toggle-line:nth-child(1) {
  top: 13px;
}
.ff-menu-toggle-line:nth-child(2) {
  top: 21px;
}
.ff-menu-toggle-line:nth-child(3) {
  top: 29px;
} /* Subtle hover */
.ff-menu-toggle:hover .ff-menu-toggle-line {
  background: #00dcff;
} /* ===== OPEN → X ===== */

.ff-menu-toggle.ff-open .ff-menu-toggle-line:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}
.ff-menu-toggle.ff-open .ff-menu-toggle-line:nth-child(2) {
  opacity: 0;
}
.ff-menu-toggle.ff-open .ff-menu-toggle-line:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
} /* Keep X clean */
.ff-menu-toggle.ff-open:hover .ff-menu-toggle-line {
  background: #fff;
} /* ────────────────────────────────────────────────────────────────
   2. BACKDROP
   ──────────────────────────────────────────────────────────────── */
#ff-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8998;
  background: rgba(4, 4, 8, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--ff-mm-speed) var(--ff-mm-ease),
    visibility var(--ff-mm-speed);
}
#ff-nav-backdrop.ff-open {
  opacity: 1;
  visibility: visible;
} /* ────────────────────────────────────────────────────────────────
   3. DRAWER PANEL
   ──────────────────────────────────────────────────────────────── */
#ff-nav-mobile {
  position: fixed;
  top: 90px; /* sits below the fixed #ff-nav bar (90px tall) */
  right: 0;
  bottom: 0;
  left: auto;
  width: var(--ff-mm-w);
  height: calc(100dvh - 90px);
  height: calc(100vh - 90px);
  z-index: 8999;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(10, 12, 18, 0.5), rgba(6, 6, 9, 0.2) 30%),
    rgba(6, 6, 9, 0.92);
  border-left: 1px solid var(--p3-border, rgba(0, 229, 255, 0.2));
  box-shadow:
    -24px 0 64px rgba(0, 0, 0, 0.55),
    -1px 0 0 rgba(0, 229, 255, 0.08);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  visibility: hidden;
  opacity: 1;
  transition:
    transform var(--ff-mm-speed) var(--ff-mm-ease),
    visibility var(--ff-mm-speed);
}
#ff-nav-mobile.ff-open {
  transform: translateX(0);
  visibility: visible;
} /* Soft moving cyan/purple glow along the drawer's left edge */
.ff-mobile-edge-glow {
  position: absolute;
  top: -10%;
  left: -1px;
  width: 3px;
  height: 45%;
  background: linear-gradient(
    180deg,
    transparent,
    var(--p3-cyan, #00e5ff),
    transparent
  );
  filter: blur(6px);
  opacity: 0;
  pointer-events: none;
}
#ff-nav-mobile.ff-open .ff-mobile-edge-glow {
  animation: ff-mm-edge-drift 5.5s ease-in-out 0.5s infinite;
}
@keyframes ff-mm-edge-drift {
  0% {
    top: -20%;
    opacity: 0;
  }
  12% {
    opacity: 0.55;
  }
  50% {
    top: 55%;
    opacity: 0.55;
  }
  88% {
    opacity: 0;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
} /* Header row: eyebrow label + close button */
.ff-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 6vw, 32px) 14px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity 0.35s ease,
    transform 0.4s var(--ff-mm-ease);
}
#ff-nav-mobile.ff-open .ff-mobile-header {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.08s;
}
.ff-mobile-eyebrow {
  font-family: var(--p3-font-d, "Tektur", sans-serif);
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--p3-cyan, #00e5ff);
  opacity: 0.85;
}
.ff-mobile-close {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--p3-border-dim, rgba(255, 255, 255, 0.1));
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.ff-mobile-close:hover {
  border-color: var(--p3-cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.08);
}
.ff-mobile-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--p3-text, #dce8ee);
  border-radius: 1px;
}
.ff-mobile-close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.ff-mobile-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
} /* Divider under the header */
.ff-mobile-header::after {
  content: none;
} /* Nav links list */
.ff-mobile-links {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  counter-reset: ff-mm-idx;
  flex: 1 0 auto;
}
.ff-mobile-links li {
  position: relative;
  counter-increment: ff-mm-idx;
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.4s ease,
    transform 0.45s var(--ff-mm-ease);
} /* Staggered entrance - each item a beat behind the last */
#ff-nav-mobile.ff-open .ff-mobile-links li {
  opacity: 1;
  transform: translateX(0);
}
#ff-nav-mobile.ff-open .ff-mobile-links li:nth-child(1) {
  transition-delay: 0.12s;
}
#ff-nav-mobile.ff-open .ff-mobile-links li:nth-child(2) {
  transition-delay: 0.16s;
}
#ff-nav-mobile.ff-open .ff-mobile-links li:nth-child(3) {
  transition-delay: 0.2s;
}
#ff-nav-mobile.ff-open .ff-mobile-links li:nth-child(4) {
  transition-delay: 0.24s;
}
#ff-nav-mobile.ff-open .ff-mobile-links li:nth-child(5) {
  transition-delay: 0.28s;
}
#ff-nav-mobile.ff-open .ff-mobile-links li:nth-child(6) {
  transition-delay: 0.32s;
}
.ff-mobile-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px clamp(20px, 6vw, 32px);
  font-family: var(--p3-font-b, "Sora", "Oxanium", sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p3-text-mid, #7a9aaa);
  text-decoration: none;
  border-bottom: 1px solid var(--p3-border-hair, rgba(255, 255, 255, 0.04));
  overflow: hidden;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    padding-left 0.25s ease;
} /* Numbered index prefix - pure CSS counter, no markup changes needed */
.ff-mobile-links a::before {
  content: counter(ff-mm-idx, decimal-leading-zero);
  font-family: var(--p3-font-b, "Sora", sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--p3-cyan, #00e5ff);
  opacity: 0.45;
  flex-shrink: 0;
  transition: opacity 0.22s ease;
} /* Left accent bar that grows in on hover/active */
.ff-mobile-links a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--p3-cyan, #00e5ff),
    var(--p3-purple, #a855f7)
  );
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s var(--ff-mm-ease);
}
.ff-mobile-links a:hover,
.ff-mobile-links a:focus-visible {
  color: var(--p3-cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.06);
  padding-left: calc(clamp(20px, 6vw, 32px) + 6px);
}
.ff-mobile-links a:hover::before,
.ff-mobile-links a:focus-visible::before {
  opacity: 1;
}
.ff-mobile-links a:hover::after,
.ff-mobile-links a:focus-visible::after {
  transform: scaleY(1);
}
.ff-mobile-links a:active {
  background: rgba(0, 229, 255, 0.1);
  transform: scale(0.99);
} /* Current-section active state (toggled by the IntersectionObserver in JS) */
.ff-mobile-links li.ff-active a {
  color: var(--p3-cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.05);
}
.ff-mobile-links li.ff-active a::before {
  opacity: 1;
}
.ff-mobile-links li.ff-active a::after {
  transform: scaleY(1);
} /* Footer zone: CTA buttons + tagline */
.ff-mobile-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px clamp(20px, 6vw, 32px) 6px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity 0.4s ease,
    transform 0.45s var(--ff-mm-ease);
}
#ff-nav-mobile.ff-open .ff-mobile-cta {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.36s;
}
.ff-mobile-cta .ff-btn {
  flex: 1 1 auto;
  text-align: center;
}
.ff-mobile-foot {
  margin: 14px 0 22px;
  padding: 0 clamp(20px, 6vw, 32px);
  font-family: var(--p3-font-b, "Sora", sans-serif);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p3-text-dim, #3d5566);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#ff-nav-mobile.ff-open .ff-mobile-foot {
  opacity: 1;
  transition-delay: 0.42s;
} /* ────────────────────────────────────────────────────────────────
   4. BODY SCROLL LOCK
   ──────────────────────────────────────────────────────────────── */
html.ff-menu-open,
body.ff-menu-open {
  overflow: hidden;
  overscroll-behavior: contain;
} /* ────────────────────────────────────────────────────────────────
   5. RESPONSIVE BREAKPOINTS
   The hamburger + drawer are now available at every screen size
   (desktop included). The centered inline nav (.ff-nav-links) is
   still hidden below 900px to make room for it - see
   forcefest-pass3.css for that rule.
   ──────────────────────────────────────────────────────────────── */
/* Apeejay logo: desktop-only. On phones only the Force Fest mark
   stays in the nav bar to keep the header compact and give the
   hamburger room on the right. */
@media (max-width: 1024px) {
  #ff-nav .ff-nav-logo-apeejay,
  #ff-nav .ff-nav-logo-sep {
    display: none !important;
  }

  #ff-nav .ff-nav-logo {
    gap: 9px;
  }

  #ff-nav .ff-nav-logo > img:first-child {
    height: 42px;
    width: 42px;
  }

  #ff-nav .ff-nav-title {
    color: #fff;
    display: block;
    font-family: var(--p3-font-d, "Tektur", sans-serif);
    font-size: clamp(0.9rem, 4vw, 1.08rem);
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
  }
} /* Very small phones: tighten the drawer width + paddings a touch */
@media (max-width: 360px) {
  :root {
    --ff-mm-w: 100vw;
  }
  #ff-nav-mobile {
    border-left: none;
  }
} /* ────────────────────────────────────────────────────────────────
   6. REDUCED MOTION
   ──────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ff-menu-toggle-line,
  #ff-nav-backdrop,
  #ff-nav-mobile,
  .ff-mobile-header,
  .ff-mobile-links li,
  .ff-mobile-cta,
  .ff-mobile-foot,
  .ff-mobile-links a,
  .ff-mobile-links a::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }

  .ff-mobile-links li,
  .ff-mobile-header,
  .ff-mobile-cta,
  .ff-mobile-foot {
    transform: none !important;
  }

  .ff-mobile-edge-glow {
    display: none;
  }
} /* Hide the drawer's native scrollbar while preserving touch/wheel scrolling
   when content is taller than the viewport. */
#ff-nav-mobile {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#ff-nav-mobile::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
} /* ────────────────────────────────────────────────────────────────
   7. DRAWER SCROLL / OVERSCROLL FIX
   Keep the navigation panel stationary. The menu is a fixed-height
   control panel, not a scrollable page, so wheel/touch input must not
   produce drawer movement, rubber-banding, or scrollbar-driven jitter.
   ──────────────────────────────────────────────────────────────── */
#ff-nav-mobile {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}
