/* ================================================================
   GENERATIONAL WEALTH LLC — PWA MOBILE STYLES
   Include this in header.php after existing styles
   ================================================================ */

/* ── BOTTOM NAV (Mobile App Style) ── */
.gw-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 200;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
}

.gw-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.gw-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s;
  color: #6b7280;
  flex: 1;
}

.gw-nav-item.active {
  color: #D4AF37;
}

.gw-nav-item:hover { color: #D4AF37; }

.gw-nav-item i {
  font-size: 1.2rem;
}

.gw-nav-item span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gw-nav-item.active i {
  filter: drop-shadow(0 0 6px rgba(212,175,55,0.5));
}

/* ── PWA INSTALL BANNER ── */
.pwa-install-banner {
  display: none;
  position: fixed;
  bottom: 72px; left: 12px; right: 12px;
  background: linear-gradient(135deg, #141414, #1a1a1a);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 16px;
  padding: 14px 16px;
  z-index: 199;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pwa-install-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-install-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #1a5c2a, #0f3a1a);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pwa-install-text { flex: 1; }
.pwa-install-title { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.pwa-install-sub { font-size: 0.72rem; color: #9ca3af; }

.pwa-install-actions { display: flex; gap: 8px; align-items: center; }

.btn-pwa-install {
  background: linear-gradient(135deg, #D4AF37, #b8962e);
  color: #0a0a0a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-pwa-dismiss {
  background: transparent;
  color: #6b7280;
  font-size: 0.75rem;
  padding: 8px;
  border: none;
  cursor: pointer;
}

/* ── MOBILE BODY PADDING (for bottom nav) ── */
@media (max-width: 768px) {
  .gw-bottom-nav { display: flex; flex-direction: column; justify-content: center; }
  .pwa-install-banner { display: block; }
  
  /* Push page content up so bottom nav doesn't cover it */
  body { padding-bottom: 72px !important; }
  
  /* Hide desktop nav items on mobile */
  .nav-links-desktop { display: none !important; }
  
  /* Make cards full width */
  .dashboard-grid { grid-template-columns: 1fr !important; }
  
  /* Bigger tap targets */
  button, .btn, a.btn { min-height: 48px; }
  
  /* Remove horizontal overflow */
  body { overflow-x: hidden; }
  
  /* App-like header */
  header, .site-header, nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
  }
}

/* ── APP MODE (standalone PWA) ── */
@media (display-mode: standalone) {
  /* Extra top padding for notch */
  body { padding-top: env(safe-area-inset-top); }
  
  /* Hide browser-style back buttons etc */
  .browser-only { display: none; }
  
  /* Larger bottom nav for app mode */
  .gw-bottom-nav {
    height: 72px;
  }
  
  /* Don't show install banner in app mode */
  .pwa-install-banner { display: none !important; }
}