/*
 * app/static/css/pwa.css — VaultMTD PWA / mobile chrome (Phase 35 Part 6)
 * =======================================================================
 * Standalone, theme-agnostic chrome injected on every page by the PWA
 * head-injection in app/__init__.py. Two components:
 *   §1 Quick-add FAB  — floating "+" on mobile, bottom-LEFT (Vera owns
 *                       bottom-right at z-index 9000, so we sit lower & left).
 *   §2 Install pill   — dismissible "Install app" prompt created by pwa.js.
 * Colours are explicit brand values (not theme tokens) so the chrome looks
 * identical across the mocha / sky / navy / carbon / light themes and the
 * public landing + auth pages.
 */

/* ── §1 Quick-add FAB (mobile only) ───────────────────────────────────── */
.vm-fab {
  display: none;                 /* hidden on desktop — shown via media query */
  position: fixed;
  left: 18px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #38BDF8;
  color: #0F172A;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.45);
  z-index: 8500;                 /* below Vera (9000), above page content */
  text-decoration: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.vm-fab:active { transform: scale(0.93); }
.vm-fab svg { width: 26px; height: 26px; display: block; }

@media (max-width: 768px) {
  .vm-fab { display: flex; }
}

/* ── §2 Install pill ──────────────────────────────────────────────────── */
.vm-install-pill {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 92vw;
  background: #1E293B;
  color: #E2E8F0;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 10px 12px 10px 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.5);
  z-index: 9100;                 /* above the FAB and Vera so it's actionable */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
}
.vm-install-pill__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-install-pill__btn {
  flex-shrink: 0;
  background: #38BDF8;
  color: #0F172A;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.vm-install-pill__btn:active { transform: translateY(1px); }
.vm-install-pill__close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}
.vm-install-pill__close:hover { color: #E2E8F0; }

/* On phones, lift the install pill above the bottom-left FAB row. */
@media (max-width: 768px) {
  .vm-install-pill {
    left: 12px;
    right: 12px;
    bottom: 88px;
    transform: none;
    max-width: none;
    justify-content: space-between;
  }
}
