/* =========================================
   YOONSO PROJECT — navbar.css
   ========================================= */

/* ── TOP LINE ── */
.topline {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59,130,246,0.5) 25%,
    rgba(147,197,253,0.9) 50%,
    rgba(59,130,246,0.5) 75%,
    transparent 100%
  );
  z-index: 999;
}

/* ── NAV WRAPPER ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(7,9,15,0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── LOGO ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-decoration: none;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 0 20px rgba(59,130,246,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  flex-shrink: 0;
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
}
.logo-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.4px;
  color: #fff;
}
.logo-name span {
  color: var(--blue-lt);
}

/* ── NAV LINKS ── */
.nav-links {
  display: flex;
  gap: 2px;
}
.nav-a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: block;
}
.nav-a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-a.active { color: var(--blue-xs); background: rgba(59,130,246,0.1); }

/* ── NAV RIGHT ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}
.nav-btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: all .2s;
}
.nav-btn-ghost:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}
.nav-btn-solid {
  background: var(--blue);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 18px rgba(59,130,246,0.35);
}
.nav-btn-solid:hover {
  background: #2563eb;
  box-shadow: 0 6px 26px rgba(59,130,246,0.52);
  transform: translateY(-1px);
}

/* ── SALDO CHIP ── */
.nav-saldo {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.nav-saldo strong {
  color: var(--blue-lt);
}

/* ── MOBILE HAMBURGER ── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  margin-left: 12px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: all .25s;
}

/* ── MOBILE MENU ── */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(7,9,15,0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-a { padding: 12px 16px; font-size: 14px; border-radius: 10px; }
.nav-mobile-btns {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.nav-mobile-btns button { flex: 1; padding: 12px; font-size: 13px; border-radius: 10px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right  { display: none; }
  .nav-burger { display: flex; }
  .nav-inner  { padding: 0 20px; }
}
