/**
 * AlphaBreakouts — Mobile Navigation v7 (Bottom Nav Only)
 *
 * DISABLED: Hamburger menu, overlay, sidebar mobile mode
 * ACTIVE: Bottom navigation bar for mobile
 *
 * Desktop keeps the sidebar (untouched).
 * Mobile shows only the bottom nav.
 */

/* ═══════════════════════════════════════════════════
   BOTTOM NAV (Mobile only)
   ═══════════════════════════════════════════════════ */

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(4, 4, 6, 0.95);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid #1c1d22;
  padding: 8px 0 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  color: #9194a1;
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  min-width: 60px;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  color: currentColor;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-nav-item span {
  font-size: 10px;
  font-weight: 500;
  color: currentColor;
  letter-spacing: 0.02em;
  transition: color 300ms;
}

.bottom-nav-item:hover {
  color: #ffffff;
}

.bottom-nav-item.active {
  color: #cc9166;
}

.bottom-nav-item.active svg {
  stroke: #cc9166;
  color: #cc9166;
  transform: scale(1.1);
}

.bottom-nav-item.active span {
  color: #cc9166;
}

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, #cc9166, #fff0cc);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 12px rgba(204, 145, 102, 0.6);
  animation: bottomNavGlow 3s ease-in-out infinite;
}

@keyframes bottomNavGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(204, 145, 102, 0.6); }
  50% { box-shadow: 0 0 24px rgba(204, 145, 102, 0.9); }
}

.bottom-nav-item:active {
  transform: scale(0.9);
}

/* ═══════════════════════════════════════════════════
   MOBILE (< 1024px) — Hide sidebar, show bottom nav
   ═══════════════════════════════════════════════════ */

@media (max-width: 1023px) {

  /* Hide the sidebar on mobile */
  .sidebar {
    display: none !important;
  }

  /* Show bottom nav */
  .bottom-nav {
    display: block !important;
  }

  /* Adjust main content — no left margin, extra bottom padding for nav */
  .main-content {
    margin-left: 0 !important;
    padding: 24px 16px 100px !important;
  }
}

/* ═══════════════════════════════════════════════════
   SMALL PHONES (< 380px)
   ═══════════════════════════════════════════════════ */

@media (max-width: 380px) {
  .bottom-nav-item {
    padding: 6px 4px;
    min-width: 50px;
  }

  .bottom-nav-item span {
    font-size: 9px;
  }

  .main-content {
    padding: 24px 12px 100px !important;
  }
}

/* ═══════════════════════════════════════════════════
   REDUCE MOTION
   ═══════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .bottom-nav,
  .bottom-nav-item,
  .bottom-nav-item svg {
    transition: none !important;
    animation: none !important;
  }
}