@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Smooth modern transitions for cards */
.listing-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -6px rgba(15, 23, 42, 0.12), 0 6px 12px -3px rgba(15, 23, 42, 0.06);
}

/* Image container aspect ratio */
.listing-image-container {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #f1f5f9;
}
.listing-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.listing-card:hover .listing-image-container img {
  transform: scale(1.06);
}

/* Source badge */
.source-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Modern spec badge in card */
.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #334155;
  background-color: #f1f5f9;
  padding: 2.5px 7px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Multi-select model tags */
.model-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background-color: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.model-tag:hover {
  background-color: #bfdbfe;
}
.model-tag .remove-tag {
  font-size: 0.85rem;
  font-weight: bold;
  margin-left: 2px;
}

/* Brand dropdown items */
.brand-item {
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.1s;
}
.brand-item:hover,
.brand-item.active {
  background-color: #eff6ff;
  color: #1e40af;
}

/* Model checkbox items */
.model-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.875rem;
  border-radius: 4px;
  transition: background-color 0.1s;
}
.model-option:hover {
  background-color: #f3f4f6;
}
.model-option input[type="checkbox"] {
  accent-color: #1e40af;
}

/* Placeholder image */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e5e7eb;
  color: #9ca3af;
  font-size: 2.5rem;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Custom scrollbar for dropdowns */
.brand-dropdown::-webkit-scrollbar,
.model-dropdown::-webkit-scrollbar {
  width: 6px;
}
.brand-dropdown::-webkit-scrollbar-thumb,
.model-dropdown::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}

/* No-image placeholder */
.no-image {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 3rem;
}

