/* /static/auth-nav.css — logged-in account pill, dropdown, Launch Epocra button.
   Injected into .nav-links by /static/auth-nav.js when localStorage.epocra_token is set. */

.nav-account-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--border, #e8e8ee);
  border-radius: 100px;
  background: var(--white, #fff);
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.nav-account-btn:hover { background: var(--surface, #fafafc); }
.nav-account-btn .nav-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple, #7c3aed), #a855f7);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  flex-shrink: 0;
}
.nav-account-btn .nav-account-email {
  font-size: 13px;
  color: var(--ink, #0f0f14);
  font-weight: 500;
  max-width: 140px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-account-btn .nav-caret {
  font-size: 8px;
  color: var(--muted, #8b8b9e);
  margin-left: 2px;
}

.nav-launch {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: var(--purple, #7c3aed);
  color: #fff !important;
  border-radius: 100px;
  font-size: 13px !important; font-weight: 600 !important;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(124,58,237,0.18);
  transition: all 0.15s;
  border: none; cursor: pointer;
}
.nav-launch:hover { background: #6d28d9; box-shadow: 0 4px 12px rgba(124,58,237,0.28); transform: translateY(-0.5px); }
.nav-launch .nav-launch-arrow { font-size: 14px; line-height: 1; }

.nav-dropdown {
  position: fixed;
  top: 60px; right: 32px;
  background: #fff;
  border: 1px solid var(--border, #e8e8ee);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  min-width: 240px;
  overflow: hidden;
  z-index: 101;
  display: none;
}
.nav-dropdown.open { display: block; }
.nav-dd-header { padding: 14px 16px; border-bottom: 1px solid var(--border, #e8e8ee); background: var(--surface, #fafafc); }
.nav-dd-name { font-size: 14px; font-weight: 600; color: var(--ink, #0f0f14); }
.nav-dd-em { font-size: 12px; color: var(--muted, #8b8b9e); margin-top: 2px; word-break: break-all; }
.nav-dd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  color: var(--body, #3d3d4e);
  font-size: 13.5px;
  cursor: pointer; text-decoration: none;
  transition: background 0.1s;
  font-family: inherit;
  border: none; background: none;
  width: 100%; text-align: left;
}
.nav-dd-item:hover { background: var(--surface, #fafafc); }
.nav-dd-icon { width: 16px; color: var(--muted, #8b8b9e); display: inline-flex; }
.nav-dd-divider { height: 1px; background: var(--border, #e8e8ee); }
.nav-dd-signout { color: var(--red, #ef4444); }

/* ── Mobile menu logged-in state ──
   Footer card pattern (Gmail/Notion drawer): identity + Account + Sign Out grouped
   into a single rounded container pinned below the Download App CTA. */
.mob-account-footer {
  margin-top: 16px;
  border: 1px solid var(--border, #e8e8ee);
  border-radius: 14px;
  background: var(--surface, #fafafc);
  overflow: hidden;
}
.mob-account-row {
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.mob-account-row .nav-avatar { width: 36px; height: 36px; font-size: 13px; }
.mob-account-info { flex: 1; min-width: 0; }
.mob-account-name { font-size: 14px; font-weight: 700; color: var(--ink, #0f0f14); line-height: 1.25; }
.mob-account-em { font-size: 12px; color: var(--muted, #8b8b9e); line-height: 1.25; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mob-account-actions { border-top: 1px solid var(--border, #e8e8ee); }
.mob-account-actions a,
.mob-account-actions .mob-signout {
  display: block; width: 100%;
  padding: 13px 16px;
  background: none; border: 0;
  text-align: left; font-size: 15px; font-weight: 600;
  color: var(--ink, #0f0f14); text-decoration: none;
  cursor: pointer; font-family: inherit;
}
.mob-account-actions a + a,
.mob-account-actions a + .mob-signout {
  border-top: 1px solid var(--border, #e8e8ee);
}
.mob-account-actions .mob-signout { color: var(--red, #ef4444); }
.mobile-menu .nav-launch { justify-content: center; padding: 14px 16px !important; font-size: 16px !important; margin-top: 12px; border-radius: 8px; }

.epocra-auth-hidden { display: none !important; }


/* ── Dropdown positioning — JS sets top/right inline so it sits under the pill, not at viewport edge ── */
.nav-dropdown { right: auto; }

/* ── App embed iframe — fills full viewport when launched (marketing nav hidden) ── */
#appEmbed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  z-index: 60;
  background: #fff;
  display: none;
}
#appEmbed.open { display: block; }
body.epocra-app-launched { overflow: hidden; }
body.epocra-app-launched nav:has(.nav-inner) { display: none; }
