/* Custom styles and mobile-first enhancements for GovContractFinder */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --high-match: #10b981;
  --high-match-bg: #ecfdf5;
  --high-match-border: #a7f3d0;
  --mod-match: #f59e0b;
  --mod-match-bg: #fffbeb;
  --mod-match-border: #fde68a;
  --low-match: #64748b;
  --low-match-bg: #f8fafc;
  --low-match-border: #e2e8f0;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Safe area insets for modern mobile devices (iOS notch/home indicator) */
.safe-top {
  padding-top: max(env(safe-area-inset-top), 0.75rem);
}
.safe-bottom {
  padding-bottom: max(env(safe-area-inset-bottom), 1rem);
}

/* Touch targets */
button, a, input, select {
  touch-action: manipulation;
}

/* Card hover animation */
.opportunity-card {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) {
  .opportunity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  }
}

/* Pulse animation for live sync indicator */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.pulse-indicator {
  animation: pulse-ring 2s infinite ease-in-out;
}

/* Modal and bottom sheet styling */
dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Score radial pill badge */
.score-pill {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Hide scrollbar for category pills on mobile while allowing swipe */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
