/* Load Righteous anywhere the navbar is used */
@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

/* ─── Custom Font ───────────────────────────────────────── */
@font-face {
  font-family: 'WF Visual Sans';
  src: url('../font/WFVisualSansVF.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 1) Reset & global font */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
}

/* 2) Navbar wrapper (fixed at top) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent; /* starts transparent */
  transition:
    background-color 200ms ease,
    -webkit-backdrop-filter 200ms ease,
    backdrop-filter 200ms ease,
    box-shadow 200ms ease;
  z-index: 1000;
}

/* Solid/blurred state after scroll */
.navbar.scrolled {
  background-color: rgba(26, 27, 34, 0.9);
  -webkit-backdrop-filter: saturate(150%) blur(6px);
  backdrop-filter: saturate(150%) blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 3) Container (60px height) */
.navbar__container {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ─── Logo Crop & Zoom ────────────────────────────────── */
.navbar__logo-container {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  position: relative;
}
.navbar__logo {
  position: absolute;
  top: -25%;
  left: -75%;
  width: 250%;
  object-fit: cover;
}

/* 4) Brand text in Righteous */
.navbar__brand {
  color: #FFFFFF;
  font-family: 'Righteous', cursive;
  font-size: 1.875rem;
  font-weight: 700;
  text-decoration: none;
  margin-right: 40px;
  line-height: 60px; /* vertically center */
}

/* 5) Menu links */
.navbar__links {
  list-style: none;
  display: flex;
  flex: 1;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.navbar__links a {
  color: #B9BBBE;
  text-decoration: none;
  line-height: 60px;
  transition: color 0.2s;
  font-family: 'WF Visual Sans', sans-serif;
  font-weight: 500;
  position: relative;
}
.navbar__links a:hover { color: #FFFFFF; }

/* Caret links: white by default */
.navbar__links a.has-caret,
.navbar__links a.has-caret:visited {
  color: #FFFFFF;
}
.navbar__links a.has-caret {
  padding-right: 16px;
}
.navbar__links a.has-caret::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  opacity: 0.9;
  pointer-events: none;
}

/* 6) Login button — match hero CTA look */
.navbar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #605CEB;
  color: #FFFFFF;
  font-family: 'WF Visual Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  height: 40px;
  padding: 0 40px;
  box-sizing: border-box;
  margin-left: auto;
  transition: filter 0.2s;
}
.navbar__button:hover { filter: brightness(1.1); }

/* 7) Profile dropdown (new, glassy) */
.navbar__profile {
  position: relative;
  margin-left: 12px;
}
.profile-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.profile-pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
}
.profile-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  opacity: 0.9;
}

/* Menu panel */
.profile-menu {
  position: absolute;
  top: 52px;
  right: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 12px;

  background-color: rgba(26, 27, 34, 0.9);
  -webkit-backdrop-filter: saturate(150%) blur(6px);
  backdrop-filter: saturate(150%) blur(6px);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);

  display: none;
  z-index: 1001;
}
.profile-menu.active { display: block; }

/* little arrow */
.profile-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 10px;
  height: 10px;
  background: rgba(26, 27, 34, 0.9);
  border-left: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.06);
  transform: rotate(45deg);
}

/* Header */
.profile-menu__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 10px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 6px;
}
.profile-menu__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.profile-menu__meta {
  display: flex;
  flex-direction: column;
}
.profile-menu__name {
  font-family: 'WF Visual Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  line-height: 1.1;
}
.profile-menu__hint {
  font-size: 12px;
  color: #B9BBBE;
}

/* Items */
.profile-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'WF Visual Sans', sans-serif;
  font-size: 14px;
  color: #E4E6EB;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.profile-menu__item:hover {
  background-color: rgba(255,255,255,0.06);
  color: #ffffff;
}

.profile-menu__divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 6px 4px;
  border-radius: 1px;
}

.profile-menu__item--danger {
  color: #ffd4d4;
}
.profile-menu__item--danger:hover {
  background-color: rgba(240, 71, 71, 0.15);
  color: #ffffff;
}

/* 9) Mobile: hide top links; keep profile/login */
@media (max-width: 768px) {
  .navbar__links { display: none; }
}
