/* ================================
   PromptlyLiz Master Navbar Styles
   Source of truth: nav.css
   Scope: #navMount only
   ================================ */

/* --- TOPBAR --- */
#navMount #topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s, background 0.25s;
}

#navMount #topbar .bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* brand trigger (hamburger + text) */
#navMount .nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

/* actions right side */
#navMount .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row !important;
}

/* topbar ghost buttons + upgrade default */
#navMount .btn.btn-ghost,
#navMount #upgrade-btn,
#navMount #loginNowBtn {
  background: rgb(0, 7, 19) !important;
  color: rgb(250, 250, 255) !important;
  border-color: rgb(0, 24, 51) !important;
}

/* --- OVERLAY --- */
#navMount #nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  pointer-events: auto;
}
#navMount #nav-overlay[hidden] {
  display: none !important;
}

/* --- DRAWER --- */
#navMount #side-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 88vw;
  background: var(--card, #0e1628);
  border-right: 1px solid var(--border);
  z-index: 1000;
  overflow: auto;

  /* off-screen by default */
  transform: translateX(-100%);
  transition: transform 0.25s ease-out;

  display: flex;
  flex-direction: column;
}

/* keep hidden REALLY hidden */
#navMount #side-nav[hidden] {
  display: none !important;
}

/* open state driven by JS toggling [hidden] */
#navMount #side-nav:not([hidden]) {
  transform: translateX(0);
}

#navMount #side-nav .mobile-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#navMount #side-nav .title {
  color: var(--ink);
  font-weight: 600;
}

#navMount #side-nav nav {
  padding: 16px;
  overflow-y: auto;
}

#navMount #side-nav nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 6px;
}
#navMount #side-nav nav a:hover {
  background: rgba(77, 166, 255, 0.1);
  color: var(--ink);
}

#navMount #side-nav .menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font: inherit;
  background: var(--card, #0f1a2b);
  color: var(--ink, #e7eefc);
  border: 1px solid var(--border, #24304d);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
#navMount #side-nav .menu-item.danger {
  background: rgb(27, 15, 18);
  border-color: rgb(59, 26, 26);
  color: rgb(255, 210, 210);
}

#navMount .menu-sep {
  border: 0;
  border-top: 1px solid var(--border, #24304d);
  margin: 0.75rem 0;
}

/* --- CONTENT OFFSET --- */
.site-shell {
  padding-top: 70px;
}

/* --- HAMBURGER ICON (3 lines) --- */
#navMount .hamburger {
  width: 20px;
  height: 3px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
  display: inline-block;
}
#navMount .hamburger::before,
#navMount .hamburger::after {
  content: "";
  width: 20px;
  height: 3px;
  background: var(--ink);
  position: absolute;
  left: 0;
  border-radius: 2px;
}
#navMount .hamburger::before { top: -6px; }
#navMount .hamburger::after  { top:  6px; }

#navMount .nav-brand:hover .hamburger,
#navMount .nav-brand:hover .hamburger::before,
#navMount .nav-brand:hover .hamburger::after {
  background: var(--cta);
}

/* motion respect */
@media (prefers-reduced-motion: reduce) {
  #navMount #side-nav { transition: none; }
}

/* =========================
   MOBILE (≤640px)
   ========================= */
@media (max-width: 640px) {

  #navMount #topbar .bar {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 8px;
    padding: 10px 16px !important;
    min-height: 56px;
  }

  #navMount .nav-brand { font-size: 12px; }

  /* one-line actions row */
  #navMount .nav-actions {
    flex-wrap: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    gap: 6px !important;
  }

  /* header auth buttons hidden on mobile */
 @media (max-width:640px) { #navMount #topbar .nav-actions #btnSignIn,
  #navMount #topbar .nav-actions #btnSignOut {
    display: none !important;
  }}

  /* drawer auth buttons visible on mobile */
  #navMount #side-nav #menuSignIn,
  #navMount #side-nav #menuSignOut
{
    display: inline-flex !important;
  }

 /* Pills that are ALWAYS visible when present */
#navMount #upgrade-btn,
#navMount #plan-badge {
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  max-width: 150px;
}

/* Email pill: only visible when .is-visible is added */
#navMount #who.user-email.is-visible {
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  max-width: 150px;
}

  /* upgrade sizing you wanted */
  #navMount #topbar #upgrade-btn {
    font-size: 0.85rem !important;
    padding: 6px 10px !important;
    border-radius: 10px !important;
    max-width: 95px !important;
  }

  /* tighten small pills so "Free" stays readable */
  #navMount #plan-badge {
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
    border-radius: 10px !important;
    max-width: 70px !important;
    min-width: 32px;
    text-align: center;
  }

  #navMount .user-email,
  #navMount #who.user-email {
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
    border-radius: 10px !important;
    max-width: 115px !important;
  }

  .site-shell { padding-top: 72px; }
}

/* =========================
   DESKTOP (≥641px)
   ========================= */

/* MOBILE (<=640px) */
@media (max-width: 640px) {
  /* hide header buttons */
  #navMount #topbar .nav-actions #btnSignIn,
  #navMount #topbar .nav-actions #btnSignOut {
    display: none !important;
  }

  /* show drawer buttons */
  #navMount #side-nav #menuSignIn,
  #navMount #side-nav #menuSignOut {
    display: block !important;
  }
}

/* DESKTOP (>=641px) */
@media (min-width: 641px) {
  /* show header buttons */
  #navMount #topbar .nav-actions #btnSignIn,
  #navMount #topbar .nav-actions #btnSignOut {
    display: inline-flex !important;
  }

  /* hide drawer buttons */
  #navMount #side-nav #menuSignIn,
  #navMount #side-nav #menuSignOut {
    display: none !important;
  }
}


@media (max-width: 640px) {
  #navMount .btn.btn-primary,
  #navMount .btn.btn-ghost {
    display: none !important;
  }
}


@media (max-width: 640px) {
#navMount .nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;        /* smaller text */
  line-height: 1;         /* fixes vertical alignment */
  padding-top: 2px;       /* optional micro nudge */
}
  #navMount #upgrade-btn,
  #navMount #plan-badge,
  #navMount .user-email,
  #navMount #who.user-email {
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
    border-radius: 10px !important;
    min-width: 0;
    max-width: 90px !important; /* keep tighter */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Tighten spacing between pills */
  #navMount .nav-actions {
    gap: 4px !important;
  }
}
@media (max-width: 640px) {
  #navMount #upgrade-btn {
    padding: 4px 8px !important;
    font-size: 0.7rem !important;
  }
}
/* ===========================
   MOBILE — compact pills
   =========================== */
@media (max-width: 640px) {

  /* Plan + Email compact pill styling */
  #navMount #plan-badge,
  #navMount .user-email,
  #navMount #who.user-email {
    padding: 2px 6px !important;        /* smaller pill */
    font-size: 0.6rem !important;       /* smaller text */
    border-radius: 10px !important;
    max-width: 80px !important;         /* shorter pill */
    min-width: 45px !important;         /* prevents collapse */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-shrink: 1 !important;
  }

  /* Upgrade button should stay readable but still shrink */
  #navMount #upgrade-btn {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
    max-width: 100px !important;

  }
}
/* ===== FINAL MOBILE PILL OVERRIDE — MUST BE LAST ===== */
@media (max-width: 640px) {

  /* plan badge */
  #navMount #topbar .nav-actions #plan-badge {
    padding: 2px 6px !important;
    font-size: 0.6rem !important;
    border-radius: 999px !important;
    width: auto !important;
    max-width: 64px !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* email badge */
  #navMount #topbar .nav-actions #who.user-email,
  #navMount #topbar .nav-actions .user-email {
    padding: 2px 6px !important;
    font-size: 0.6rem !important;
    border-radius: 999px !important;
    width: auto !important;
    max-width: 84px !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}

.brand .dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(77, 166, 255, .25);
}
/* pRactice page issue*/

.hidden { display:none !important; }