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

.navbar {

  position: sticky;

  top: 0;

  z-index: 1000;

  background: rgba(255,255,255,0.92);

  backdrop-filter: blur(12px);

  border-bottom:
    1px solid rgba(15,23,42,0.06);

  box-shadow:
    0 4px 20px rgba(15,23,42,0.04);

  padding: 0 12px;
}


/* =========================================
   NAV CONTAINER
========================================= */

.nav-container {

  position: relative;

  max-width: 1280px;

  margin: 0 auto;

  height: 76px;

  display: flex;

  align-items: center;

  gap: 32px;

  padding: 0 24px;
}


/* =========================================
   LOGO
========================================= */

.logo {

  flex-shrink: 0;
}

.logo-wrap {

  display: flex;

  align-items: center;

  gap: 12px;

  text-decoration: none;
}

.logo-wrap img {

  width: 46px;

  height: 46px;

  object-fit: contain;

  display: block;
}

.brand-text {

  font-size: 1.2rem;

  font-weight: var(--font-bold);

  color: var(--color-text);

  letter-spacing: -0.02em;
}


/* =========================================
   MOBILE TOGGLE
========================================= */

.mobile-menu-toggle {

  display: none;

  width: 44px;
  height: 44px;

  border: none;

  border-radius: 14px;

  background: #f8fafc;

  color: #0f172a;

  font-size: 24px;

  font-weight: 700;

  cursor: pointer;

  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {

  background: #eff6ff;

  color: #2563eb;
}


/* =========================================
   DESKTOP WRAPPER
========================================= */

.mobile-nav-wrapper {

  display: flex;

  align-items: center;

  margin-left: auto;

  gap: 18px;
}


/* =========================================
   NAVIGATION
========================================= */

.nav-links {

  display: flex;

  align-items: center;

  gap: 28px;
}

.nav-links a {

  position: relative;

  color: var(--color-text-light);

  text-decoration: none;

  font-weight: 600;

  letter-spacing: -0.01em;

  transition:
    color var(--transition-fast);
}

.nav-links a:hover {

  color: var(--color-primary);
}


/* =========================================
   NAV ACTIONS
========================================= */

.nav-actions {

  display: flex;

  align-items: center;
}

.auth-buttons {

  display: flex;

  align-items: center;

  gap: 12px;
}


/* =========================================
   PROFILE
========================================= */

.profile-btn {

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 8px 12px;

  border-radius: 14px;

  border:
    1px solid rgba(15,23,42,0.08);

  background: rgba(255,255,255,0.82);

  transition: all 0.2s ease;
}

.profile-btn:hover {

  background: #f8fafc;

  border-color:
    rgba(37,99,235,0.16);

  transform: translateY(-1px);
}

.profile-avatar {

  width: 36px;

  height: 36px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #1d4ed8
    );

  color: white;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 15px;

  font-weight: 800;

  letter-spacing: 0.02em;

  box-shadow:
    0 8px 18px rgba(37,99,235,0.22);
}

.profile-chevron {

  font-size: 11px;

  color: #64748b;

  transform: translateY(1px);
}


/* =========================================
   DROPDOWN
========================================= */

.dropdown-label {

  font-size: 12px;

  color: var(--color-text-muted);

  margin-bottom: 4px;

  font-weight: 500;
}


/* =========================================
   MOBILE NAV
========================================= */

@media (max-width: 900px) {

  .nav-container {

    height: 76px;

    padding: 0 18px;
  }

  .mobile-menu-toggle {

    display: flex;

    margin-left: auto;
  }

  .mobile-nav-wrapper {

    position: absolute;

    top: 76px;

    left: 12px;

    right: 12px;

    background: white;

    border-radius: 24px;

    padding: 24px;

    box-shadow:
      0 20px 40px rgba(15,23,42,0.12);

    flex-direction: column;

    align-items: stretch;

    gap: 24px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(-10px);

    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;

    z-index: 2000;
  }

  .mobile-nav-wrapper.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
  }

  .nav-links {

    width: 100%;

    flex-direction: column;

    align-items: flex-start;

    gap: 18px;
  }

  .nav-links a {

    width: 100%;

    font-size: 1rem;
  }

  .dropdown {

    width: 100%;
  }

  .dropdown-toggle {

    width: 100%;

    justify-content: space-between;
  }

  .dropdown-menu {

    position: static;

    width: 100%;

    margin-top: 10px;

    box-shadow: none;

    border:
      1px solid rgba(15,23,42,0.06);
  }

  .nav-actions {

    width: 100%;
  }

  .auth-buttons {

    width: 100%;

    flex-direction: column;

    align-items: stretch;
  }

  .auth-buttons a {

    width: 100%;

    justify-content: center;
  }

  .profile-btn {

    width: 100%;

    justify-content: space-between;
  }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 640px) {

  .brand-text {

    font-size: 1rem;
  }

  .logo-wrap img {

    width: 38px;

    height: 38px;
  }

  .nav-container {

    padding: 0 14px;
  }

  .mobile-nav-wrapper {

    left: 10px;

    right: 10px;

    padding: 20px;
  }
}