/* nav.css — shared navigation styles for all 30Elevate pages (v2) */

/* ==========================================
   NAV PILL (desktop floating bar)
   ========================================== */
.nav-pill {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 16px;
  background: rgba(9,14,26,0.6);
  border: none;
  border-radius: 14px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 4px 30px rgba(0,0,0,0.35),
    0 0 1px rgba(59,130,246,0.15),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background-image:
    radial-gradient(circle, rgba(59,130,246,0.04) 0.5px, transparent 0.5px);
  background-size: 10px 10px;
  background-position: 2px 2px;
}
.nav-pill.scrolled {
  background-color: rgba(9,14,26,0.78);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.45),
    0 0 2px rgba(59,130,246,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Animated gradient border */
.nav-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    rgba(59,130,246,0.3),
    rgba(59,130,246,0.04),
    rgba(99,102,241,0.18),
    rgba(59,130,246,0.03),
    rgba(14,165,233,0.22),
    rgba(59,130,246,0.04),
    rgba(59,130,246,0.3)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: navBorderRotate 10s linear infinite;
}
/* Glow behind border */
.nav-pill::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    rgba(59,130,246,0.1),
    transparent,
    rgba(99,102,241,0.07),
    transparent,
    rgba(14,165,233,0.1),
    transparent,
    rgba(59,130,246,0.1)
  );
  filter: blur(6px);
  opacity: 0.5;
  pointer-events: none;
  animation: navBorderRotate 10s linear infinite;
  z-index: -1;
}
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes navBorderRotate { to { --border-angle: 360deg; } }

/* Accent light trail (cursor follower) */
.nav-trail {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.06), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.nav-pill:hover .nav-trail { opacity: 1; }

/* ==========================================
   LOGO
   ========================================== */
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo-svg { height: 22px; width: auto; display: block; }
.logo-elevate { fill: var(--dark); }
.logo-30 {
  stroke: #2563EB;
  animation: navLogoPulse 4s ease-in-out infinite;
}
@keyframes navLogoPulse {
  0%, 100% { stroke-opacity: 0.85; }
  50% { stroke-opacity: 1; filter: drop-shadow(0 0 4px rgba(59,130,246,0.25)); }
}

/* ==========================================
   STATUS + SEPARATOR
   ========================================== */
.nav-status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(59,130,246,0.35);
  animation: navStatusPulse 3s ease-in-out infinite;
}
@keyframes navStatusPulse {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 4px rgba(59,130,246,0.35); }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(59,130,246,0.35), 0 0 20px rgba(59,130,246,0.15); }
}

.nav-sep {
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, rgba(59,130,246,0.15), transparent);
  margin: 0 6px;
  flex-shrink: 0;
}

/* ==========================================
   NAV LINKS (desktop)
   ========================================== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li {
  display: flex;
  align-items: center;
  position: relative;
  line-height: 1;
}
.nav-links li::before {
  content: ''; position: absolute; left: -1px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 12px; border-radius: 1px;
  background: linear-gradient(180deg, transparent, rgba(59,130,246,0.25), transparent);
  box-shadow: 0 0 4px rgba(59,130,246,0.15);
  animation: navLinePulse 4s ease-in-out infinite;
  animation-delay: var(--dot-d, 0s);
}
.nav-links li:first-child::before { display: none; }
@keyframes navLinePulse {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 4px rgba(59,130,246,0.15); }
  50% { opacity: 0.7; box-shadow: 0 0 6px rgba(59,130,246,0.3); }
}

.nav-links > li > a {
  position: relative;
  font-family: 'Clash Display', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(241,245,249,0.7);
  padding: 7px 12px;
  border-radius: 8px;
  transition: color 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.nav-links > li > a:hover { color: #fff; }
.nav-links > li > a.nav-active {
  color: #fff;
  background: linear-gradient(180deg, transparent 30%, rgba(59,130,246,0.06) 100%);
}
.nav-links > li > a.nav-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 25%;
  width: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(59,130,246,0.35), 0 2px 12px rgba(59,130,246,0.35);
}

/* ==========================================
   DROPDOWN (Glass Panel)
   ========================================== */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown::after {
  content: ''; position: absolute; left: -12px; right: -12px; top: 100%; height: 14px;
  pointer-events: auto;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; padding: 12px;
  text-align: left;
  background: rgba(9,14,26,0.85);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 1px rgba(59,130,246,0.15);
  opacity: 0; transform: translateY(-8px); filter: blur(4px);
  pointer-events: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out, filter 200ms ease-out;
  z-index: 110;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-dropdown:hover {
  opacity: 1; transform: translateY(0); filter: blur(0); pointer-events: auto;
}
.nav-dropdown::before {
  content: ''; position: absolute; inset: 0; border-radius: 14px; padding: 1px;
  background: conic-gradient(from var(--border-angle,0deg), rgba(59,130,246,0.3), rgba(59,130,246,0.04), rgba(99,102,241,0.18), rgba(59,130,246,0.03), rgba(14,165,233,0.22), rgba(59,130,246,0.04), rgba(59,130,246,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; animation: navBorderRotate 10s linear infinite;
}
.nav-dropdown::after {
  content: ''; position: absolute; inset: 0; border-radius: 14px;
  background: repeating-linear-gradient(to bottom, rgba(59,130,246,0.015) 0px 1px, transparent 1px 3px);
  opacity: 0.7; pointer-events: none;
}
.nav-dropdown a {
  display: block; padding: 8px 14px;
  color: rgba(241,245,249,0.65); text-align: left !important;
  font-family: 'Clash Display', sans-serif; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border-radius: 8px;
  transition: color 150ms, transform 150ms, background 150ms;
  position: relative; z-index: 2;
}
.nav-dropdown a:hover {
  color: var(--dark); transform: translateX(4px); background: rgba(59,130,246,0.06);
}
.nav-dropdown a.dd-active { color: var(--dark); }
.nav-dropdown a.dd-active::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px; height: 1.5px;
  background: var(--accent); border-radius: 1px; box-shadow: 0 0 6px rgba(59,130,246,0.3);
}

/* ==========================================
   SOCIAL ICONS
   ========================================== */
.nav-social { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.nav-social a {
  color: rgba(148,163,184,0.5);
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}
.nav-social a:hover { color: var(--accent); background: rgba(59,130,246,0.06); }
.nav-social svg { width: 14px; height: 14px; }

/* ==========================================
   LANGUAGE SWITCHER
   ========================================== */
/* Nav language link — same style as nav links */
.nav-lang {
  font-family: 'Clash Display', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(241,245,249,0.7);
  padding: 7px 10px;
  border-radius: 8px;
  transition: color 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-decoration: none;
  cursor: pointer;
}
.nav-lang:hover { color: #fff; }
/* Glow during decode animation */
[data-decode-active] {
  text-shadow: 0 0 12px rgba(59,130,246,0.25), 0 0 4px rgba(59,130,246,0.15);
  transition: text-shadow 0.3s ease;
}

/* ==========================================
   HAMBURGER
   ========================================== */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  min-width: 36px; min-height: 36px;
  background: rgba(255,255,255,0.04);
  border: none;
  border-radius: 50%;
  margin-left: 2px;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--dark);
  margin: 2px 0;
}
.hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ==========================================
   MOBILE NAV (fullscreen overlay)
   ========================================== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--nav-bg-mobile, rgba(9,14,26,0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-sub { padding-left: 32px !important; font-size: 1.2rem !important; opacity: 0.7; }

/* ==========================================
   MOBILE BOTTOM NAV
   ========================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--nav-bg, rgba(9,14,26,0.6));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);
  gap: 2px;
  align-items: center;
  white-space: nowrap;
}

.mbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 8px;
  border-radius: 100px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
  position: relative;
  min-width: 40px;
}

.mbn-icon { display: flex; align-items: center; justify-content: center; }
.mbn-icon svg { transition: transform 0.25s ease; width: 16px; height: 16px; }

.mbn-label {
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.mbn-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
  transition: width 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.mbn-item.mbn-active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.07);
}
.mbn-item.mbn-active::before { width: 24px; }
.mbn-item.mbn-active .mbn-icon svg {
  filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.45));
}

@keyframes mbn-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.28); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.mbn-item.mbn-popping .mbn-icon svg {
  animation: mbn-pop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.mobile-bottom-nav.mbn-footer-hide {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(20px) !important;
}

.mbn-logo {
  display: none;
  align-items: center;
  padding: 4px 4px 4px 0;
  margin-right: 2px;
  flex-shrink: 0;
}
.mbn-logo svg { height: 16px; width: auto; }

/* ==========================================
   MBN EXPANDABLE PANEL (rises above bottom nav)
   ========================================== */
.mbn-panel {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  z-index: 99;
  background: rgba(9,14,26,0.92);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(59,130,246,0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  max-height: 0;
  padding: 0 20px;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4), 0 0 1px rgba(59,130,246,0.12);
}
.mbn-panel.open {
  max-height: 420px;
  padding: 16px 20px;
  opacity: 1;
  pointer-events: auto;
}
.mbn-panel-link {
  display: block;
  padding: 10px 12px;
  color: rgba(241,245,249,0.7);
  font-family: 'Clash Display', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.mbn-panel-link:hover,
.mbn-panel-link:active {
  color: var(--dark);
  background: rgba(59,130,246,0.06);
  transform: translateX(4px);
}
.mbn-panel-link.nav-lang {
  color: rgba(241,245,249,0.7);
  font-size: 0.85rem;
}
.mbn-panel-link.nav-lang:hover { color: var(--accent); }
.mbn-panel-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.12), transparent);
  margin: 4px 0;
}
.mbn-panel-cta {
  display: block;
  text-align: center;
  padding: 10px 16px;
  margin-top: 4px;
  background: var(--accent);
  color: #fff;
  font-family: 'Clash Display', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}
.mbn-panel-cta:hover { background: #2563EB; }
/* Backdrop overlay when panel is open */
.mbn-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 98;
}
.mbn-backdrop.open { display: block; }

/* Hamburger in bottom nav */
button.mbn-hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  box-shadow: none;
}
button.mbn-hamburger:hover,
button.mbn-hamburger:active,
button.mbn-hamburger:focus {
  background: transparent;
}
