/* ============================================================================
   cars.w4hr.buzz — Argon Dark Design System & Custom Component Styles
   ============================================================================ */

:root {
  --bg-primary: #0B0F17;
  --bg-elevated: #111827;
  --bg-card: #161F30;
  --bg-card-hover: #1C273C;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(59, 130, 246, 0.6);
  --accent-blue: #3B82F6;
  --accent-emerald: #10B981;
  --accent-red: #EF4444;
  --accent-amber: #F59E0B;
}

* {
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-primary);
  color: #F3F4F6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
  font-feature-settings: "liga" 0, "zero" 1;
}

/* Subtle tactical background grid */
.bg-argon-grid {
  background-color: #0B0F17;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.08), transparent 35%),
    radial-gradient(circle at 85% 5%, rgba(16, 185, 129, 0.06), transparent 30%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0B0F17;
}

::-webkit-scrollbar-thumb {
  background: #26334D;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3B82F6;
}

/* Radar Pulse Animation for Live 5-Min Monitor */
@keyframes radar-ping {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.radar-pulse {
  animation: radar-ping 2s infinite;
}

@keyframes radar-sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.radar-sweep-ring {
  animation: radar-sweep 4s linear infinite;
}

/* Vehicle Card Interactive Elevation & Hover States */
.vehicle-card {
  background-color: #161F30;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.vehicle-card:hover {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(59, 130, 246, 0.35), 0 0 24px -4px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.vehicle-card.monitored-card {
  border-color: rgba(16, 185, 129, 0.35);
}

.vehicle-card.monitored-card:hover {
  border-color: rgba(16, 185, 129, 0.75);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(16, 185, 129, 0.45), 0 0 24px -4px rgba(16, 185, 129, 0.22);
}

/* Image Overlay CTA on Card Hover */
.vehicle-card .card-image-overlay {
  opacity: 0;
  transition: opacity 0.18s ease-in-out, transform 0.18s ease-in-out;
  transform: translateY(4px);
}

.vehicle-card:hover .card-image-overlay {
  opacity: 1;
  transform: translateY(0);
}

.vehicle-card .card-thumb-img {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-card:hover .card-thumb-img {
  transform: scale(1.04);
}

/* Destination domain footer highlight on hover */
.vehicle-card .card-domain-telemetry {
  color: #9CA3AF;
  transition: color 0.15s ease;
}

.vehicle-card:hover .card-domain-telemetry {
  color: #60A5FA;
}

/* Platform Pill States (Active vs Excluded) */
.platform-pill {
  transition: all 0.15s ease;
  user-select: none;
}

.platform-pill.is-excluded {
  opacity: 0.45;
  text-decoration: line-through;
  border-color: rgba(239, 68, 68, 0.4) !important;
  background-color: rgba(239, 68, 68, 0.08) !important;
  color: #FCA5A5 !important;
}

/* Custom Range Slider */
input[type="range"].argon-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #1E293B;
  border-radius: 999px;
  outline: none;
}

input[type="range"].argon-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3B82F6;
  border: 2px solid #F8FAFC;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
  transition: transform 0.12s ease;
}

input[type="range"].argon-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Price Drop Flash Animation */
@keyframes emerald-flash {
  0%, 100% {
    background-color: rgba(16, 185, 129, 0.14);
  }
  50% {
    background-color: rgba(16, 185, 129, 0.32);
  }
}

.price-drop-pulse {
  animation: emerald-flash 2.2s ease-in-out infinite;
}

/* Modal Backdrop Transition */
.modal-backdrop {
  background-color: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(6px);
}
