/* ============================================================
   AUXIONMARKETS — Navigation (Trustworthy / Institutional)
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background: var(--bg-primary); /* Solid, trustworthy white */
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Add shadow when scrolled via JS */
.navbar.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-bottom-color: transparent;
}

.navbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark-secondary);
  transition: color 0.2s ease;
  position: relative;
  padding: 28px 0; /* Extends hit area to the full height roughly */
  display: inline-block;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
  border-radius: 3px 3px 0 0;
}

.nav-link:hover::after {
  width: 100%;
}

.navbar__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-login:hover {
  color: var(--accent);
  background: var(--bg-surface);
}

.navbar__cta .btn-primary {
  font-size: 14px;
  padding: 11px 24px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.25); /* Trustworthy glowing shadow */
}

.navbar__cta .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.35);
  transform: translateY(-1px);
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Hamburger Menu ─────────────────────────────────────────── */
.navbar__hamburger {
  display: flex; /* Always flex but hidden by display none on desktop desktop in media query if I prefer, but better to keep it display none here and flex on mobile */
  display: none; 
  flex-direction: column;
  gap: 5px;
  width: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 0;
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.navbar.active .navbar__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.active .navbar__hamburger span:nth-child(2) { opacity: 0; }
.navbar.active .navbar__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 992px) {
  .navbar__hamburger { display: flex; }
  
  .navbar__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
    overflow: hidden;
    transition: var(--transition-base);
    border-bottom: 0 solid var(--border-light);
    z-index: 100;
  }

  .navbar.active .navbar__links {
    height: calc(100vh - var(--nav-height));
    padding: 40px 0;
    border-bottom-width: 1px;
    overflow-y: auto;
  }

  .nav-item {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-base);
  }

  .navbar.active .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  /* stagger links animation */
  .navbar.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
  .navbar.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
  .navbar.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
  .navbar.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
  .navbar.active .nav-item:nth-child(5) { transition-delay: 0.3s; }

  .nav-link {
    width: 100%;
    padding: 20px 0;
    font-size: 20px; /* larger for mobile touch */
    border-bottom: 1px solid var(--border-faint);
  }
  .nav-link::after { display: none; }

  .nav-login { 
    font-size: 15px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
  }
  .navbar__cta .btn-primary { display: none; }

  .navbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}
