/* public/css/pwa-shell.css — PWA mobile shell styles.
   Owns: PWA install banner, mobile viewport adjustments, bottom nav integration.
   Does NOT own: sidebar, page-specific styles. */

/* ── PWA standalone mode adjustments ─────────────────────────────────── */
@media (display-mode: standalone) {
  /* Hide sidebar in standalone PWA */
  .sidebar, .sidebar-overlay, .mobile-header { display: none !important; }
  .app-main { margin-left: 0 !important; }
  /* Bottom padding for bottom nav */
  .app-main { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Mobile bottom nav visibility ────────────────────────────────────── */
@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  /* Give content space for bottom nav */
  .app-main { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 769px) {
  .bottom-nav { display: none; }
}

/* ── Notification bell badge (bottom nav) ────────────────────────────── */
.bnav-item { position: relative; }
.bnav-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #FF4D6D;
  color: #fff;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  font-family: 'Inter', 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
.bnav-badge:empty { display: none; }

/* ── PWA install prompt ──────────────────────────────────────────────── */
.pwa-install-banner {
  display: none;
  position: fixed;
  bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  z-index: 600;
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  padding: 16px 20px;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.pwa-install-banner.show { display: flex; }
.pwa-install-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #FF4D6D, #00F2EA);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pwa-install-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}
.pwa-install-text {
  flex: 1;
}
.pwa-install-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
  font-family: 'Inter', sans-serif;
}
.pwa-install-text p {
  font-size: 0.75rem;
  color: #888;
  margin: 0;
  font-family: 'Inter', sans-serif;
}
.pwa-install-btn {
  background: #FF4D6D;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.pwa-install-close {
  background: none;
  border: none;
  color: #666;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
