/* ============================================================
   Bid+ — Shared Stylesheet
   Brand: dark #1a2b30 + lime #b9d600
   ============================================================ */

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

:root {
  --bg:           #0d1117;
  --bg2:          #121820;
  --bg3:          #171f2a;
  --card:         #1a2230;
  --card-hover:   #1f2a3a;
  --dark:         #1a2b30;
  --text:         #e8edf2;
  --muted:        #7a90a4;
  --muted2:       #4a6070;
  --accent:       #b9d600;
  --accent-dark:  #a0bb00;
  --accent-dim:   rgba(185,214,0,0.12);
  --accent-glow:  rgba(185,214,0,0.20);
  --border:       rgba(255,255,255,0.07);
  --border2:      rgba(255,255,255,0.12);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.25);
  --shadow:       0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg:    0 24px 64px rgba(0,0,0,0.45);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(185,214,0,0.30); border-radius: 99px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-links a.active { color: #fff; }

.nav-cta {
  background: var(--accent) !important;
  color: #0d1117 !important;
  padding: 9px 20px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: #0d1117 !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: 0.2s;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 560px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #0d1117;
  box-shadow: 0 4px 20px rgba(185,214,0,0.25);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 28px rgba(185,214,0,0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: rgba(255,255,255,0.11); }

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Car listing card (horizontal list) ── */
.car-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  min-height: 170px;
}

.car-card:hover {
  border-color: rgba(185,214,0,0.30);
  box-shadow: 0 8px 32px rgba(0,0,0,0.30), 0 0 0 1px rgba(185,214,0,0.10);
}

/* Left: image */
.car-card-img {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
  min-height: 170px;
}

.car-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.car-card:hover .car-card-img img { transform: scale(1.04); }

.car-card-source {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.source-copart { background: #1565c0; color: #fff; }
.source-iaai   { background: #c62828; color: #fff; }
.source-eu     { background: #2e7d32; color: #fff; }

.car-card-condition {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.cond-run  { background: rgba(46,125,50,0.92);  color: #fff; }
.cond-no   { background: rgba(198,40,40,0.92);  color: #fff; }
.cond-cant { background: rgba(230,120,0,0.92);  color: #fff; }

/* Middle: details */
.car-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--border);
}

.car-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.car-card-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

.car-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.meta-tag {
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.car-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 16px;
  margin-top: auto;
}

.car-card-grid-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.car-card-grid-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted2);
}

.car-card-grid-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.car-card-grid-value.accent  { color: var(--accent); }
.car-card-grid-value.warning { color: #f59332; }
.car-card-grid-value.danger  { color: #ef5350; }

/* Right: bid + date */
.car-card-aside {
  width: 180px;
  flex-shrink: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.car-card-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

.car-card-countdown {
  font-size: 13px;
  font-weight: 700;
  color: #4caf82;
  text-align: right;
}
.car-card-countdown.urgent { color: #f59332; }
.car-card-countdown.ended  { color: var(--muted2); }

.car-card-bid {
  margin-top: auto;
  text-align: right;
}

.bid-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted2);
}

.bid-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

/* Mobile: stack vertically */
@media (max-width: 700px) {
  .car-card {
    grid-template-columns: 1fr;
  }
  .car-card-img { min-height: 200px; }
  .car-card-body { border-right: none; border-bottom: 1px solid var(--border); }
  .car-card-aside { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .car-card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--accent-dim);
  border: 1px solid rgba(185,214,0,0.22);
  color: #d4ec40;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185,214,0,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(185,214,0,0); }
}

/* ============================================================
   INPUTS / FORMS
   ============================================================ */
.input, .select, .textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
  cursor: pointer;
}
.select option { background: #1a2230; }
.input::placeholder, .textarea::placeholder { color: rgba(255,255,255,0.30); }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(185,214,0,0.55);
  box-shadow: 0 0 0 3px rgba(185,214,0,0.10);
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group { display: flex; flex-direction: column; gap: 5px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0a0e14;
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo { height: 32px; width: auto; margin-bottom: 16px; }

.footer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.footer-social a:hover {
  background: rgba(185,214,0,0.12);
  border-color: rgba(185,214,0,0.30);
}
.footer-social svg { width: 18px; height: 18px; }

.footer-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted2);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.page-btn:hover, .page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d1117;
}
.page-btn:disabled { opacity: 0.35; pointer-events: none; }

/* ============================================================
   SKELETON
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(26,34,48,0.97);
  border: 1px solid var(--border2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  z-index: 9999;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .nav-inner { padding: 0 20px; }

  .nav-links { display: none; flex-direction: column; gap: 2px; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: rgba(13,17,23,0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    backdrop-filter: blur(20px);
  }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
