/* ============================= */
/* NAVBAR                        */
/* ============================= */

.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6));
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

:root[data-theme='dark'] .nav-wrap {
  background: linear-gradient(180deg, rgba(10,14,20,0.85), rgba(10,14,20,0.6));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  font-size: 25px;
  font-family: Arial, Helvetica, sans-serif;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #0b1220;
  box-shadow: var(--card-shadow);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--muted);
  margin: 3px 0;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    right: 20px;
    background: var(--surface);
    flex-direction: column;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
  }

  .nav-links.show {
    display: flex;
  }
}
