/* ══════════════════════════════════════════════════════════
   CA$H.BOT — Shared Navigation Component
   Include on any page: <link rel="stylesheet" href="/shared-nav.css">
   ══════════════════════════════════════════════════════════ */

/* ── NAV CONTAINER ── */
#shared-nav nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(0,255,65,.1);
  transition: background .4s, box-shadow .4s;
}

#shared-nav nav.scrolled {
  background: rgba(0,0,0,.95);
  box-shadow: 0 0 40px rgba(0,255,65,.08);
}

/* Green gradient underline */
#shared-nav nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,65,.4), transparent);
}

/* Spacer to prevent content from hiding behind fixed nav */
#shared-nav .snav-spacer {
  height: 60px;
}

/* ── LOGO ── */
#shared-nav .snav-logo {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #00ff41;
  text-shadow: 0 0 20px rgba(0,255,65,.3);
  text-decoration: none;
  white-space: nowrap;
}

#shared-nav .snav-logo .dollar {
  color: #ff0033;
  text-shadow: 0 0 20px rgba(255,0,51,.4);
}

/* ── RIGHT SIDE LINKS ── */
#shared-nav .snav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* AI ONLINE status */
#shared-nav .snav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 11px;
  color: #00ff41;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

#shared-nav .snav-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff41;
  box-shadow: 0 0 10px #00ff41;
  animation: snavPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes snavPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #00ff41; }
  50% { opacity: .3; box-shadow: 0 0 16px #00ff41; }
}

/* Nav links */
#shared-nav .snav-link {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #6b7a90;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .2s;
  white-space: nowrap;
}

#shared-nav .snav-link:hover,
#shared-nav .snav-link.active {
  color: #00ff41;
}

/* CTA button */
#shared-nav .snav-cta {
  display: inline-block;
  background: #00ff41;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 0 20px rgba(0,255,65,.3);
  white-space: nowrap;
}

#shared-nav .snav-cta:hover {
  background: #00ff60;
  box-shadow: 0 0 40px rgba(0,255,65,.5);
  transform: translateY(-1px);
}

/* ── HAMBURGER (mobile) ── */
#shared-nav .snav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

#shared-nav .snav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #00ff41;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Hamburger open state */
#shared-nav .snav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#shared-nav .snav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
#shared-nav .snav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE DROPDOWN ── */
#shared-nav .snav-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(0,255,65,.1);
  padding: 16px 24px;
  flex-direction: column;
  gap: 12px;
}

#shared-nav .snav-mobile-menu.open {
  display: flex;
}

#shared-nav .snav-mobile-menu a {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #6b7a90;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,255,65,.06);
  transition: color .2s;
}

#shared-nav .snav-mobile-menu a:last-child {
  border-bottom: none;
}

#shared-nav .snav-mobile-menu a:hover,
#shared-nav .snav-mobile-menu a.active {
  color: #00ff41;
}

#shared-nav .snav-mobile-menu .snav-cta {
  text-align: center;
  margin-top: 4px;
}

/* ── RESPONSIVE ── */

/* Tablet: tighten gaps, hide status text */
@media (max-width: 768px) {
  #shared-nav nav {
    padding: 0 16px;
  }
  #shared-nav .snav-right {
    gap: 10px;
  }
  #shared-nav .snav-status span:not(.snav-pulse) {
    display: none;
  }
}

/* Mobile: show hamburger, hide desktop links */
@media (max-width: 600px) {
  #shared-nav .snav-hamburger {
    display: flex;
  }

  /* Hide all desktop right-side items */
  #shared-nav .snav-status,
  #shared-nav .snav-link,
  #shared-nav .snav-cta {
    display: none;
  }

  #shared-nav .snav-right {
    gap: 0;
  }
}
