/* =============================================================
   AutoPrestige – Custom CSS
   ============================================================= */

/* ---- Fonts & Base ---- */
:root {
  --ap-red:      #e94560;
  --ap-dark:     #1a1a2e;
  --ap-mid:      #16213e;
  --ap-light:    #f8f9fa;
  --ap-border:   #e9ecef;
  --ap-radius:   .75rem;
  --ap-shadow:   0 2px 12px rgba(0,0,0,.08);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #2d3142;
  background: #f8f9fa;
}

/* ---- Buttons ---- */
.btn-danger   { background: var(--ap-red);   border-color: var(--ap-red); }
.btn-danger:hover { background: #c62a47; border-color: #c62a47; }
.btn-white    { background: #fff; color: var(--ap-red); border: 1px solid rgba(255,255,255,.3); }
.btn-white:hover { background: rgba(255,255,255,.9); }
.btn-outline-white { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---- Navbar ---- */
.navbar-dark .navbar-brand { font-size: 1.1rem; letter-spacing: .03em; }
.navbar-dark .nav-link      { font-size: .9rem; font-weight: 500; padding: .5rem .9rem; border-radius: .4rem; }
.navbar-dark .nav-link.active { background: rgba(255,255,255,.12); color: #fff !important; }
.navbar-dark .nav-link:hover  { background: rgba(255,255,255,.08); }

/* ---- Hero Section ---- */
.hero-section {
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='2' fill='rgba(255,255,255,.05)'/%3E%3C/svg%3E") repeat;
}

/* ---- Vehicle Cards ---- */
.vehicle-card {
  transition: transform .25s ease, box-shadow .25s ease;
  border-radius: var(--ap-radius) !important;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12) !important;
}
.vehicle-card:hover .card-overlay {
  opacity: 1 !important;
  transition: opacity .2s;
}
.card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
  transition: opacity .2s;
}

/* ---- Brand chips ---- */
.brand-chip {
  transition: all .2s;
  font-size: .85rem;
}
.brand-chip:hover {
  border-color: var(--ap-red) !important;
  background: #fff8f9 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(233,69,96,.15);
}

/* ---- Gallery ---- */
.thumb-img {
  transition: opacity .15s, border-color .15s;
  cursor: pointer;
}
.thumb-img:hover { opacity: .85; border-color: var(--ap-red) !important; }

/* ---- Stats on vehicle detail ---- */
.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #f3f4f6;
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .82rem;
  font-weight: 500;
}

/* ---- Cookie banner ---- */
.cookie-banner {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--ap-radius);
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
}

/* ---- CTA section ---- */
section[style*='e94560'] .btn-white {
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* ---- Forms ---- */
.form-control:focus, .form-select:focus {
  border-color: var(--ap-red);
  box-shadow: 0 0 0 .2rem rgba(233,69,96,.15);
}

/* ---- Prose / Static pages ---- */
.prose h4 { margin-top: 2rem; font-weight: 700; }
.prose p, .prose li { line-height: 1.8; color: #444; }

/* ---- Admin – stat card hover ---- */
.stat-card:hover { transform: translateY(-2px); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ---- Timeline (order history) ---- */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ap-border);
}

/* ---- Responsive tweaks ---- */
@media (max-width: 576px) {
  .hero-section { min-height: 100vh !important; }
  .display-4 { font-size: 2rem; }
}

/* ---- Bootstrap dashed border utility ---- */
.border-dashed {
  border-style: dashed !important;
}

/* ---- Min-vh-75 ---- */
.min-vh-75 {
  min-height: 75vh;
}

/* ---- Tracking wide ---- */
.tracking-wider {
  letter-spacing: .08em;
}

/* ---- Sidebar bottom fixed ---- */
.sidebar { display: flex; flex-direction: column; }
.sidebar > div:last-child { margin-top: auto !important; }

/* ---- Smooth page transitions ---- */
main { animation: fadeIn .25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
