/* ==========================================================================
   GAMEHOOD UK - ULTRA-PREMIUM FLOATING CAPSULE NAVBAR
   Inspired by SchoolBros & Modern Cyberpunk / Dark Glassmorphism Aesthetics
   ========================================================================== */

:root {
  --nav-capsule-bg: rgba(13, 17, 28, 0.88);
  --nav-capsule-border: rgba(255, 255, 255, 0.09);
  --nav-capsule-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --nav-lime: #a3e635;
  --nav-cyan: #00f5ff;
  --nav-orange: #ff5722;
  --nav-text: #cbd5e1;
  --nav-text-active: #ffffff;
}

/* Floating Wrapper */
.site-header-floating {
  position: sticky;
  top: 14px;
  z-index: 1100;
  width: 100%;
  padding: 0 16px;
  margin-bottom: 12px;
  pointer-events: none;
}

/* Capsule Pill Bar */
.nav-capsule {
  pointer-events: auto;
  max-width: 1440px;
  margin: 0 auto;
  height: 62px;
  border-radius: 9999px;
  background: var(--nav-capsule-bg);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--nav-capsule-border);
  box-shadow: var(--nav-capsule-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 6px 20px;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header-floating.scrolled .nav-capsule {
  background: rgba(10, 13, 22, 0.94);
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.85), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   LEFT: BRAND SECTION (SchoolBros Cyber Logo Style)
   -------------------------------------------------------------------------- */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  user-select: none;
}

.nav-brand-emblem {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.16) 0%, rgba(34, 197, 94, 0.04) 100%);
  border: 1.5px solid var(--nav-lime);
  box-shadow: 0 0 14px rgba(163, 230, 53, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-lime);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.nav-brand-emblem::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-brand:hover .nav-brand-emblem {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 0 20px rgba(163, 230, 53, 0.6);
  border-color: #bef264;
}

.nav-brand:hover .nav-brand-emblem::after {
  opacity: 1;
}

.brand-chip-svg {
  width: 22px;
  height: 22px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-accent {
  color: var(--nav-lime);
  text-shadow: 0 0 10px rgba(163, 230, 53, 0.6);
}

.brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8b949e;
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   CENTER: LINKS TRACK (Clean, modern typography & glow pills)
   -------------------------------------------------------------------------- */
.nav-links-track {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9999px;
  color: var(--nav-text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
}

.nav-item:hover {
  color: var(--nav-text-active);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-item.nav-item-pill,
.nav-item.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Micro Badges inside Links */
.nav-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1.15;
  display: inline-block;
  vertical-align: middle;
}

.nav-badge-lime {
  background: rgba(163, 230, 53, 0.22);
  color: #a3e635;
  border: 1px solid rgba(163, 230, 53, 0.55);
  box-shadow: 0 0 10px rgba(163, 230, 53, 0.35);
}

.nav-badge-cyan {
  background: rgba(0, 245, 255, 0.2);
  color: #00f5ff;
  border: 1px solid rgba(0, 245, 255, 0.55);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.35);
}

.nav-badge-orange {
  background: rgba(255, 87, 34, 0.22);
  color: #ff7043;
  border: 1px solid rgba(255, 87, 34, 0.55);
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.35);
}

/* --------------------------------------------------------------------------
   RIGHT: SEARCH PILL & PLAY NOW CTA
   -------------------------------------------------------------------------- */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Search Capsule */
.nav-search-capsule {
  position: relative;
  width: 135px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-search-capsule:focus-within {
  width: 210px;
  background: rgba(18, 22, 38, 0.95);
  border-color: var(--nav-cyan);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.25);
}

.nav-search-icon {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.nav-search-capsule:focus-within .nav-search-icon {
  color: var(--nav-cyan);
}

.nav-search-capsule input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  width: 100%;
}

.nav-search-capsule input::placeholder {
  color: #64748b;
}

/* Search Dropdown styling */
.nav-search-capsule .search-results-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: rgba(14, 18, 30, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 1200;
  padding: 8px;
}

.nav-search-capsule .search-results-dropdown.active {
  display: block;
}

/* Play Now Pill Button (Exact SchoolBros Right CTA) */
.nav-btn-play-now {
  height: 38px;
  padding: 0 18px 0 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.play-triangle-svg {
  width: 12px;
  height: 12px;
  fill: #ffffff;
  transition: transform 0.25s ease, fill 0.25s ease;
}

.nav-btn-play-now:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(0, 245, 255, 0.25) 100%);
  border-color: var(--nav-cyan);
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.35);
  transform: translateY(-1px);
}

.nav-btn-play-now:hover .play-triangle-svg {
  transform: scale(1.2) translateX(1px);
  fill: var(--nav-cyan);
}

.nav-btn-play-now:active {
  transform: translateY(0) scale(0.98);
}

/* Mobile Hamburger Toggle */
.nav-mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.nav-mobile-toggle span {
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   MOBILE FLOATING DRAWER
   -------------------------------------------------------------------------- */
.nav-mobile-drawer {
  pointer-events: auto;
  max-width: 1440px;
  margin: 8px auto 0;
  display: none;
  border-radius: 24px;
  background: rgba(13, 17, 28, 0.96);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85);
  padding: 16px;
  animation: drawerSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-mobile-drawer.active {
  display: block;
}

@keyframes drawerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 8px 14px;
  margin-bottom: 8px;
}

.mobile-search-row svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.mobile-search-row input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.9rem;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.mobile-nav-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.mobile-btn-play-now {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(0, 245, 255, 0.25) 100%);
  border: 1px solid var(--nav-cyan);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.25);
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1220px) {
  .nav-item {
    padding: 6px 9px;
    font-size: 0.82rem;
  }
  .nav-search-capsule {
    width: 110px;
  }
  .brand-sub {
    display: none;
  }
}

@media (max-width: 1040px) {
  .nav-links-track {
    display: none;
  }
  .nav-mobile-toggle {
    display: flex;
  }
  .nav-search-capsule {
    width: 130px;
  }
}

@media (max-width: 600px) {
  .site-header-floating {
    top: 8px;
    padding: 0 10px;
  }
  .nav-capsule {
    height: 54px;
    padding: 4px 10px 4px 14px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .nav-brand-emblem {
    width: 32px;
    height: 32px;
  }
  .brand-chip-svg {
    width: 18px;
    height: 18px;
  }
  .nav-search-capsule {
    display: none;
  }
  .nav-btn-play-now span {
    display: none;
  }
  .nav-btn-play-now {
    padding: 0 10px;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
  .mobile-nav-links {
    grid-template-columns: 1fr;
  }
}
