/* ===== Glass-style Navbar ===== */
.glass-nav {
  background: rgba(13, 17, 23, 0.65);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
  z-index: 999;
}

.navbar-brand {
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #fff;
}

.nav-link {
  color: var(--text);
  opacity: 0.85;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  opacity: 1;
}

/* Custom burger icon (white lines) */
.navbar-toggler-icon-custom {
  width: 24px;
  height: 2px;
  background-color: #e6e6e6;
  position: relative;
  display: inline-block;
  border-radius: 2px;
}

.navbar-toggler-icon-custom::before,
.navbar-toggler-icon-custom::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: #e6e6e6;
  border-radius: 2px;
}

.navbar-toggler-icon-custom::before {
  top: -7px;
}

.navbar-toggler-icon-custom::after {
  top: 7px;
}

/* Auth links */
.btn-nav {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-nav:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.btn-accent-nav {
  color: #001018;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.btn-accent-nav:hover {
  background: #00b8dd;
  border-color: #00b8dd;
  color: #001018;
}

.welcome {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Mobile tweaks */
@media (max-width: 991px) {
  .auth-links {
    margin-top: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-nav,
  .btn-accent-nav {
    width: 100%;
    text-align: left;
  }

  .welcome {
    display: none;
  }
}

/* ===== Transparent-to-solid navbar on scroll ===== */
.glass-nav {
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.glass-nav.scrolled {
  background: rgba(13, 17, 23, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* ===== Fix active nav link color for dark background ===== */
.nav-link.active {
  color: var(--accent) !important; /* Usa tu color azul-acento */
  opacity: 1 !important;
  background: transparent !important; /* elimina fondo gris/negro */
}

.nav-link.active:hover {
  color: #00e0ff !important; /* un tono un poco más brillante al pasar el ratón */
}

