/* public/navbar.css — the single unified site navbar ("one navbar to rule them
   all"). Self-contained (.nv-*), no Bootstrap dependency, dark theme; rendered
   on every page via partials/navbar.ejs. */

.nv {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #0e1014;
  border-bottom: 1px solid rgba(250, 249, 245, 0.08);
  padding: 0 20px;
  min-height: 60px;
  font-family: "Montserrat", sans-serif;
  z-index: 50;
}
.nv-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nv-brand img { height: 30px; width: auto; }

/* Primary (marketing) links */
.nv-links { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; flex-wrap: wrap; }
.nv-link {
  color: #C2C0B6;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.nv-link:hover { color: #FAF9F5; background: rgba(250, 249, 245, 0.06); text-decoration: none; }
.nv-link.is-active { color: #ffb700; }

.nv-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* Workspace switcher (Cadence only — appears when locals present) */
.nv-switch {
  background: #1a1c22;
  border: 1px solid rgba(250, 249, 245, 0.14);
  border-radius: 6px;
  color: #FAF9F5;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  padding: 6px 8px;
  max-width: 200px;
}

/* ===== Apps mega menu ===== */
.nv-mega { position: relative; }
.nv-mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 249, 245, 0.06);
  border: 1px solid rgba(250, 249, 245, 0.16);
  border-radius: 8px;
  color: #FAF9F5;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
}
.nv-mega-btn:hover { background: rgba(250, 249, 245, 0.12); }
.nv-grid {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(3, 4px);
  gap: 2px;
}
.nv-grid i { display: block; width: 4px; height: 4px; border-radius: 1px; background: currentColor; }
.nv-caret { font-size: 10px; opacity: 0.7; }

.nv-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #1a1c22;
  border: 1px solid rgba(250, 249, 245, 0.16);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  padding: 18px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px 28px;
  min-width: 420px;
}
.nv-mega.nv-open .nv-panel { display: grid; }
.nv-group { min-width: 170px; }
.nv-group-title {
  color: #8a887e;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0 0 8px;
  padding: 0 8px;
}
.nv-item {
  display: block;
  color: #FAF9F5;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
}
.nv-item:hover { background: rgba(255, 183, 0, 0.12); color: #ffb700; text-decoration: none; }
.nv-item small { display: block; color: #8a887e; font-size: 11px; margin-top: 2px; }
.nv-item:hover small { color: rgba(255, 183, 0, 0.7); }

/* Auth buttons */
.nv-auth {
  background: transparent;
  border: 1px solid rgba(250, 249, 245, 0.16);
  border-radius: 6px;
  color: #FAF9F5;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  padding: 7px 13px;
  text-decoration: none;
}
.nv-auth:hover { background: rgba(250, 249, 245, 0.08); color: #FAF9F5; text-decoration: none; }
.nv-auth-primary { background: #ffb700; border-color: #ffb700; color: #1d1f24; font-weight: 600; }
.nv-auth-primary:hover { filter: brightness(1.06); background: #ffb700; color: #1d1f24; }

/* Verify-email banner (Cadence) */
.nv-verify {
  background: #7a1f1f; color: #fff; padding: 9px 16px; text-align: center;
  font-family: "Montserrat", sans-serif; font-size: 13px;
}
.nv-verify button {
  background: transparent; border: 1px solid rgba(255,255,255,0.4); border-radius: 5px;
  color: #fff; cursor: pointer; font-size: 12px; margin-left: 8px; padding: 3px 9px;
}

/* Mobile */
.nv-toggle {
  display: none;
  background: none; border: none; color: #FAF9F5; cursor: pointer; font-size: 22px;
  margin-left: auto; padding: 4px 8px;
}
@media (max-width: 860px) {
  .nv { flex-wrap: wrap; }
  .nv-toggle { display: block; }
  .nv-links, .nv-right { display: none; width: 100%; }
  .nv.nv-open .nv-links { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding-bottom: 10px; }
  .nv.nv-open .nv-right { display: flex; flex-wrap: wrap; padding-bottom: 12px; }
  .nv-panel { position: static; min-width: 0; grid-template-columns: 1fr; box-shadow: none; }
}
