/* ================================================================
   NAV.CSS — Navegación compartida entre todas las páginas
   ================================================================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: rgba(8,10,20,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  gap: 8px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  transition: opacity .3s;
}
.nav-logo:hover { opacity: .85; }

/* Logo imagen de marca */
.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(200,155,60,.4));
  transition: filter .3s;
}
.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 16px rgba(200,155,60,.7));
}

/* Texto SYKII.GG junto al logo */
.nav-logo-text {
  font-family: var(--font-accent);
  font-size: 22px;
  letter-spacing: .12em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(200,155,60,.35);
  line-height: 1;
}
.nav-logo-text span { color: var(--electric); }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 14px; border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav-links a:hover  { color: var(--gold); background: rgba(200,155,60,.07); }
.nav-links a.active { color: var(--gold); }

/* Twitch live dot en el nav */
.nav-live-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
  margin-right: 6px;
  animation: pulse-live 1.5s ease-in-out infinite;
}
@keyframes pulse-live {
  0%,100% { opacity:1; box-shadow: 0 0 8px var(--purple); }
  50%      { opacity:.6; box-shadow: 0 0 14px var(--purple); }
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 24px;
  padding: 6px 8px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-left: 0; /* nav already uses space-between */
}
@media(max-width:700px) {
  .nav-toggle { display: flex; }

  /* Logo siempre visible, sin encogerse */
  .nav-logo {
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
  }
  .nav-logo-img { height: 24px; }
  .nav-logo-text { font-size: 18px; }

  /* El ul de links se convierte en menú desplegable */
  .nav-links {
    position: fixed; top: 56px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    margin-left: 0;
    background: rgba(5,8,16,.98);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    transform: translateY(-110%);
    transition: transform .3s ease;
    z-index: 200;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    padding: 14px 24px;
    width: 100%; border-radius: 0;
    font-size: 14px;
    min-height: 48px;
    display: flex; align-items: center;
  }
}

/* Sylas R spell icon in navbar */
.nav-sylas-r {
  width: 18px;
  height: 18px;
  object-fit: cover;
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
  vertical-align: middle;
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 1px;
  filter: saturate(1.1) brightness(.95);
  transition: filter .2s;
}
.nav-links a:hover .nav-sylas-r,
.nav-links a.active .nav-sylas-r,
.nav-links a.nav-active .nav-sylas-r {
  filter: saturate(1.4) brightness(1.1) drop-shadow(0 0 4px rgba(200,155,60,.5));
}

/* Hero R icon (larger, in CTA button) */
#hero-sylas-r-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0);
  opacity: .85;
}

/* ── STREAM STATUS BOX ───────────────────────────────────────── */
.nav-stream-box {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px; font-weight: 800; letter-spacing: .15em;
  clip-path: polygon(4px 0%,100% 0%,calc(100% - 4px) 100%,0% 100%);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  transition: all .2s;
  margin-left: 8px;
  flex-shrink: 0;
}
.nav-stream-box:hover { border-color: rgba(200,155,60,.3); color: var(--text); }

/* Live state */
.nav-stream-box.live {
  border-color: rgba(239,68,68,.5);
  background: rgba(239,68,68,.1);
  color: #fca5a5;
}
.nav-stream-box.live:hover { border-color: rgba(239,68,68,.8); }

/* Offline state */
.nav-stream-box.offline {
  border-color: rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  color: var(--muted);
}

/* Dot */
.nsb-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.2);
}
.nsb-dot.live {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: nsb-pulse 1.4s ease-in-out infinite;
}
.nsb-viewers {
  display: none;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .03em;
  margin-left: 2px;
}
.nav-stream-box.live .nsb-viewers {
  color: rgba(255,200,200,.7);
}

.nsb-dot.offline {
  background: rgba(255,255,255,.2);
  animation: none;
}
@keyframes nsb-pulse {
  0%,100% { box-shadow: 0 0 4px #ef4444; opacity: 1; }
  50%      { box-shadow: 0 0 10px #ef4444cc; opacity: .7; }
}

/* Mobile: hide label, keep dot */
@media (max-width: 768px) {
  .nav-stream-box {
    padding: 4px 7px;
    margin-left: 4px;
  }
  .nsb-label { display: none; }
}

/* ── NAV MOBILE EXTRAS ──────────────────────────────────────────── */
@media(max-width:480px) {
  /* Hide viewer count on very small screens */
  .nsb-viewers { display: none !important; }
  /* Nav logo — smaller */
  .nav-logo-text { font-size: 16px !important; }
  .nav-logo-gg   { font-size: 16px !important; }
}
