/* Bida2z Design System - Custom CSS */
:root {
  --navy: #142342;
  --orange: #F47A20;
  --bg: #F4F6F9;
  --slate: #64748B;
  --green: #16856B;
  --red: #EF4444;
  --white: #FFFFFF;
}

/* Countdown timer */
.countdown-digit {
  background: var(--navy);
  color: white;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 11px;
  min-width: 24px;
  text-align: center;
  display: inline-block;
  white-space: nowrap;
}
/* Timer container — never wraps */
[data-end-time] {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

/* Last 60s pulse animation */
@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,53,69,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(220,53,69,0); }
}
.timer-urgent {
  animation: urgentPulse 1s ease-in-out infinite;
  border: 2px solid #dc3545 !important;
  border-radius: 8px;
}
.timer-urgent .countdown-digit {
  background: #dc3545;
}

/* Auction card */
.auction-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.auction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(20, 35, 66, 0.12);
}

/* Status badges */
.badge-live {
  background: #FEECEA;
  color: #EF4444;
  border: 1px solid #FCA5A5;
}
.badge-scheduled {
  background: #EFF6FF;
  color: #3B82F6;
  border: 1px solid #BFDBFE;
}
.badge-completed {
  background: #ECFDF5;
  color: #16856B;
  border: 1px solid #6EE7B7;
}
.badge-closed {
  background: #F3F4F6;
  color: #6B7280;
  border: 1px solid #D1D5DB;
}

/* Filter sidebar */
.filter-section {
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

/* Bid button pulse */
@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244,122,32,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(244,122,32,0); }
}
.btn-bid-pulse {
  animation: pulse-orange 2s infinite;
}

/* Inspection grade */
.grade-A { background: #ECFDF5; color: #16856B; border: 2px solid #16856B; }
.grade-B { background: #EFF6FF; color: #3B82F6; border: 2px solid #3B82F6; }
.grade-C { background: #FFFBEB; color: #D97706; border: 2px solid #D97706; }
.grade-D { background: #FEF2F2; color: #EF4444; border: 2px solid #EF4444; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F4F6F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

/* Dashboard sidebar active */
.sidebar-link.active {
  background: rgba(244,122,32,0.1);
  color: var(--orange);
  border-right: 3px solid var(--orange);
  font-weight: 600;
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: #E5E7EB;
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ── Hero: desktop/mobile split ──────────────────── */
.hero-desktop { display: block; }
.hero-mobile  { display: none; }

/* Auction card variants */
.auction-card-desktop { display: flex; }
.auction-card-mobile  { display: none !important; }

/* Section cards: desktop grid shown, mobile scroll hidden */
.mob-cards-scroll { display: none !important; }
.mob-cards-grid   { display: grid; }
.mob-desktop-only { display: block; }

@media (max-width: 768px) {
  /* Swap heroes */
  .hero-desktop { display: none !important; }
  .hero-mobile  { display: block !important; }

  /* Swap card layouts */
  .auction-card-desktop { display: none !important; }
  .auction-card-mobile  { display: block !important; }

  /* Swap section card layouts */
  .mob-cards-scroll { display: flex !important; }
  .mob-cards-grid   { display: none !important; }
  .mob-desktop-only { display: none !important; }

  /* Hide scrollbar on category scroll */
  .mob-cards-scroll::-webkit-scrollbar { display: none; }

  /* section backgrounds */
  .mob-section { background: #f4f6f9; }

  /* bottom padding for bottom nav */
  main { padding-bottom: 76px; }
}

@media (max-width: 480px) {
  .auction-grid-4 { grid-template-columns: 1fr !important; }
}

/* ── Mobile bottom nav ───────────────────────────── */
.mob-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  z-index: 100;
  height: 60px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
@media (max-width: 768px) {
  .mob-bottom-nav { display: flex; }
}
.mob-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 500;
  transition: color .15s;
}
.mob-nav-item.active,
.mob-nav-item:hover { color: #F47A20; }
.mob-nav-item svg { width: 22px; height: 22px; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  min-width: 280px;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Vehicle image gallery */
.gallery-thumb {
  cursor: pointer;
  transition: ring 0.1s;
}
.gallery-thumb.active {
  ring: 2px;
  ring-color: var(--orange);
}

/* Responsive table */
@media (max-width: 640px) {
  .responsive-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
