/* Passaria — shared floating pill nav (feat/passaria-floating-nav).

   One nav, one stylesheet, used verbatim by every Passaria page:
   home.html, concursos_list.html (both standalone, load this file
   directly) and base.html (every other page — login, cadastro, concurso,
   painel, provas, diagnóstico, checkout — via _nav.html). Previously the
   floating "pill" nav only existed on the home page; every base.html page
   got a full-width fixed Tailwind/Alpine bar instead, so navigating from
   the home to login (or any inner page) felt like leaving the product.
   Owner feedback 2026-09-30: "na página inicial eu gosto daquele layout
   com o menu suspenso centralizado; quando vou para o login fica fixo,
   tem como manter aquilo?" — this file is "aquilo", made brand-wide.

   Self-contained on purpose: declares its own --pv-* custom properties
   instead of reading home/concursos_list's landing.css :root tokens or
   base.html's Tailwind rgb-triplet theme.css tokens, so it renders
   identically regardless of which of those two (very different) CSS
   systems is loaded on the page. Tokens are the same hex values as
   landing.css's --accent/--ink/etc (claude/PASSARIA_PLANO_2026-09-22.md
   §4 — fixed white canvas, single blue accent, no green/purple).

   Mobile (<=720px): the link row + auth row collapse into a <details>/
   <summary> menu button — works with JavaScript fully disabled, no Alpine
   dependency. */

.pv-nav {
  --pv-hairline: #eaeaea;
  --pv-ink: #1a1a19;
  --pv-muted: #787774;
  --pv-accent: #1f4fbf;
  --pv-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --pv-sans: "Instrument Sans", "SF Pro Text", system-ui, sans-serif;

  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 14px 16px 10px;
  background: transparent;
  font-family: var(--pv-sans);
}

.pv-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--pv-hairline);
  border-radius: 10px;
  padding: 8px 8px 8px 16px;
  max-width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.pv-brand {
  font: 800 18px/1 var(--pv-display);
  color: var(--pv-ink);
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
.pv-brand i { font-style: normal; color: var(--pv-accent); }

.pv-links { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.pv-links a { color: var(--pv-muted); text-decoration: none; }
.pv-links a:hover { color: var(--pv-ink); }

.pv-auth { display: flex; align-items: center; gap: 14px; }
.pv-auth-inline { display: inline-flex; }
.pv-link {
  font: 600 13px var(--pv-sans);
  color: var(--pv-muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.pv-link:hover { color: var(--pv-ink); }
.pv-cta {
  font: 600 13px var(--pv-sans);
  background: var(--pv-ink);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-block;
}

/* Mobile menu button — hidden on desktop. */
.pv-burger { display: none; }

@media (max-width: 720px) {
  .pv-links,
  .pv-auth { display: none; }

  .pv-burger { display: block; }

  .pv-burger summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
  }
  .pv-burger summary::-webkit-details-marker,
  .pv-burger summary::marker { display: none; content: ""; }
  .pv-burger summary:focus-visible { outline: 2px solid var(--pv-accent); outline-offset: 2px; }

  .pv-burger-icon,
  .pv-burger-icon::before,
  .pv-burger-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--pv-ink);
    border-radius: 2px;
  }
  .pv-burger-icon { position: relative; }
  .pv-burger-icon::before,
  .pv-burger-icon::after { content: ""; position: absolute; left: 0; }
  .pv-burger-icon::before { top: -6px; }
  .pv-burger-icon::after { top: 6px; }
  .pv-burger[open] .pv-burger-icon { background: transparent; }
  .pv-burger[open] .pv-burger-icon::before { top: 0; transform: rotate(45deg); }
  .pv-burger[open] .pv-burger-icon::after { top: 0; transform: rotate(-45deg); }

  .pv-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid var(--pv-hairline);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
    padding: 10px;
    display: flex;
    flex-direction: column;
  }
  .pv-panel a,
  .pv-panel button {
    display: block;
    width: 100%;
    text-align: left;
    font: 500 14.5px var(--pv-sans);
    color: var(--pv-ink);
    text-decoration: none;
    background: none;
    border: none;
    padding: 11px 10px;
    min-height: 44px;
    border-radius: 8px;
    cursor: pointer;
  }
  .pv-panel a:hover,
  .pv-panel button:hover { background: #f6f5f4; }
  .pv-panel hr { border: none; border-top: 1px solid var(--pv-hairline); margin: 6px 4px; }
  .pv-panel .pv-cta-block {
    background: var(--pv-ink);
    color: #fff;
    text-align: center;
    font-weight: 700;
    margin-top: 2px;
  }
  .pv-panel .pv-cta-block:hover { background: var(--pv-ink); opacity: .9; }
}
