/* UrbanHelp Custom Mobile Application Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  --primary: #000666;
  --primary-container: #1a237e;
  --secondary: #8b5000;
  --secondary-container: #ff9800;
  --surface: #f1f4f8; /* Cool light gray canvas background for sharp contrast with white cards */
  --surface-container: #e5e9f0;
  --on-surface: #1b1c1c;
  --outline: #767683;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0f172a;
  margin: 0;
  padding: 0;
  color: var(--on-surface);
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

/* Mobile App Viewport Container */
.app-viewport, .mobile-frame {
  max-width: 480px;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--surface);
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .app-viewport, .mobile-frame {
    max-width: 100%;
    box-shadow: none;
  }
}

/* Mobile App Header (Fills parent container width cleanly) */
header.app-header {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bottom Navigation Bar (Centered 480px width) */
nav.bottom-nav {
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  left: 0 !important;
  right: 0 !important;
}

@media (max-width: 640px) {
  nav.bottom-nav {
    max-width: 100% !important;
  }
}

/* Filter Chip Pill Styling - Fixed Whitespace & High Contrast Active State */
.filter-chip {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.6rem 1.25rem !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  border-radius: 9999px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
}

.filter-chip.chip-active {
  background-color: #1a237e !important;
  color: #ffffff !important;
  border: 2px solid #1a237e !important;
  box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3) !important;
}

.filter-chip.chip-inactive {
  background-color: #ffffff !important;
  color: #1e293b !important;
  border: 2px solid #cbd5e1 !important;
}

.dark .filter-chip.chip-inactive {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border: 2px solid #475569 !important;
}

/* High Contrast Prominent Service Box */
.service-box-prominent {
  background-color: #ffffff;
  border: 2px solid #cbd5e1; /* Sharp slate-300 border boundary */
  box-shadow: 0 10px 25px -4px rgba(0, 6, 102, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-radius: 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.service-box-prominent:hover {
  border-color: #000666;
  box-shadow: 0 14px 30px -4px rgba(0, 6, 102, 0.20), 0 8px 12px -2px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.dark .service-box-prominent {
  background-color: #1e293b;
  border-color: #475569;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.5);
}

.dark .service-box-prominent:hover {
  border-color: #ff9800;
}

/* Animations & Micro-interactions */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

.animate-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.5s infinite;
}

/* Custom Scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.card-shadow {
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.08);
}

.hero-gradient {
  background: linear-gradient(135deg, #1a237e 0%, #000666 100%);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.fill-icon {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Page Transitions */
.page-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

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

/* Side Drawer Animation */
.drawer-backdrop {
  transition: opacity 0.3s ease-in-out;
}
.drawer-panel {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
