/* frontend/public/css/nav.css */
/* 80s / Early 90s Synthwave Neon Arcade Control Deck Navigation */

.bottom-nav,
.bottom-nav *,
.bottom-nav *::before,
.bottom-nav *::after {
  box-sizing: border-box;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  min-height: 64px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)) 6px;
  background: linear-gradient(180deg, rgba(28, 12, 54, 0.98) 0%, rgba(9, 4, 22, 0.99) 100%);
  border-top: 2px solid #00f0ff;
  border-left: none;
  border-right: none;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -6px 24px rgba(0, 240, 255, 0.28), inset 0 2px 10px rgba(255, 0, 127, 0.2);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 3px;
  z-index: 9500;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Tactile Arcade Deck Switch Buttons */
.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 54px;
  padding: 4px 1px;
  border-radius: 10px;
  background: rgba(7, 3, 18, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  text-decoration: none;
  font-family: monospace, sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.6);
  transition:
    transform 0.08s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.15s ease;
}

/* Physical Arcade Button Press Effect */
.nav-item:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.6);
}

/* Top LED Strip Indicator (Lights up when tab is active) */
.nav-item::before {
  content: '';
  position: absolute;
  top: 3px;
  width: 14px;
  height: 2.5px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-icon {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-label {
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Active Arcade Button State */
.nav-item.active {
  background: linear-gradient(180deg, rgba(255, 0, 127, 0.24) 0%, rgba(0, 240, 255, 0.14) 100%);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow:
    0 3px 0 #0284c7,
    0 0 14px rgba(0, 240, 255, 0.4);
}

.nav-item.active::before {
  background: #fde047;
  box-shadow: 0 0 8px #fde047;
}

.nav-item.active .nav-icon {
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.75));
}

.nav-item.active .nav-label {
  color: #fde047;
  text-shadow: 0 0 6px rgba(253, 224, 71, 0.6);
}

/* Center "Scratch 5" Token Button Accent */
.nav-item.nav-center-token {
  border-color: rgba(255, 0, 127, 0.55);
  background: linear-gradient(180deg, rgba(255, 0, 127, 0.18) 0%, rgba(16, 8, 36, 0.9) 100%);
}

.nav-item.nav-center-token.active {
  border-color: #fde047;
  background: linear-gradient(180deg, rgba(255, 0, 127, 0.45) 0%, rgba(190, 24, 93, 0.35) 100%);
  box-shadow:
    0 3px 0 #9d174d,
    0 0 18px rgba(255, 0, 127, 0.55);
}

.nav-token-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  border: 1.5px solid #ffffff;
  color: #000000;
  font-family: monospace, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(253, 224, 71, 0.6);
}