/* Vonix — shared navigation styles.
 *
 * Owned by nav.css so every surface (picker, detail, messenger) gets an
 * identical, polished bar without duplicating rules. Load alongside the page's
 * own stylesheet.
 */

.vnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 11px 22px;
  background: rgba(6, 8, 18, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
}

/* ---------- brand ---------- */
.vnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
}
.vnav-mark { position: relative; width: 24px; height: 24px; flex: 0 0 auto; }
.vnav-mark i {
  position: absolute;
  width: 11px; height: 11px;
  border: 2px solid #5ce1ff;
  border-radius: 3px;
  transform: rotate(45deg);
}
.vnav-mark i:nth-child(1) { left: 0; top: 0; }
.vnav-mark i:nth-child(2) { right: 0; top: 6px; width: 8px; height: 8px; border-color: #a78bfa; }
.vnav-mark i:nth-child(3) { left: 4px; bottom: 0; opacity: 0.55; }
.vnav-wordmark {
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 0.86rem;
}

/* ---------- links ---------- */
.vnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.vnav-link {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 9px;
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease;
}
.vnav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.vnav-link.is-current {
  color: #fff;
  background: rgba(92, 225, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(92, 225, 255, 0.35);
}

/* ---------- right side ---------- */
.vnav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  min-width: 0;
}

.vnav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 7px 13px;
  min-width: 190px;
  transition: border-color 140ms ease;
}
.vnav-search:focus-within { border-color: rgba(92, 225, 255, 0.55); }
.vnav-search input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  width: 100%;
}
.vnav-search input::placeholder { color: rgba(255, 255, 255, 0.4); }
.vnav-search-ico {
  width: 11px; height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.vnav-search-ico::after {
  content: "";
  position: absolute;
  width: 6px; height: 2px;
  background: rgba(255, 255, 255, 0.45);
  right: -4px; bottom: -2px;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* ---------- signed out ---------- */
.vnav-account { display: flex; align-items: center; gap: 8px; }

.vnav-signin {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 9px;
  transition: color 140ms ease, background 140ms ease;
}
.vnav-signin:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.vnav-join {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #06121f;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 9px;
  background: linear-gradient(135deg, #5ce1ff, #a78bfa);
  white-space: nowrap;
  transition: filter 140ms ease;
}
.vnav-join:hover { filter: brightness(1.1); }

/* ---------- signed in ---------- */
.vnav-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  color: #fff;
  transition: border-color 140ms ease, background 140ms ease;
}
.vnav-user:hover { border-color: rgba(92, 225, 255, 0.5); background: rgba(255, 255, 255, 0.1); }

.vnav-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.76rem;
  color: #06121f;
  background: linear-gradient(135deg, #5ce1ff, #a78bfa);
  flex: 0 0 auto;
}
.vnav-avatar.is-loading {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
}

.vnav-username {
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vnav-caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
}

/* ---------- account menu ---------- */
.vnav-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 22px;
  min-width: 228px;
  background: rgba(10, 12, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  padding: 6px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.66);
  z-index: 50;
}
.vnav-menu-head {
  padding: 10px 11px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vnav-menu-name { font-size: 0.86rem; font-weight: 700; color: #fff; }
.vnav-menu-mail {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.48);
  overflow: hidden;
  text-overflow: ellipsis;
}
.vnav-menu-tag {
  margin-top: 5px;
  align-self: flex-start;
  font-family: ui-monospace, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5ce1ff;
  border: 1px solid rgba(92, 225, 255, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
}
.vnav-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 130ms ease, color 130ms ease;
}
.vnav-menu-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.vnav-menu-item.is-danger { color: #ffc9d2; }
.vnav-menu-item.is-danger:hover { background: rgba(251, 113, 133, 0.14); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .vnav { gap: 10px; padding: 9px 14px; }
  .vnav-search { display: none; }
  .vnav-username { display: none; }
  .vnav-user { padding: 4px; }
  .vnav-caret { display: none; }
}

@media (max-width: 560px) {
  .vnav-wordmark { display: none; }
  .vnav-link { padding: 7px 10px; font-size: 0.8rem; }
  .vnav-join { padding: 8px 12px; font-size: 0.78rem; }
  .vnav-signin { padding: 7px 10px; font-size: 0.78rem; }
  .vnav-menu { right: 10px; left: 10px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vnav-link, .vnav-user, .vnav-join, .vnav-signin, .vnav-menu-item, .vnav-search {
    transition: none;
  }
}

/* Full renaissance emblem replaces the old drawn mark. */
.vnav-emblem {
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 6px rgba(92, 225, 255, 0.35));
}
