/* ============================================================
   AATSC.eu — Main Stylesheet
   American Automobile & Truck Sales Company
   ============================================================ */

:root {
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1c2330;
  --accent: #c8a84b;
  --accent-hover: #e0c060;
  --text-primary: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  padding-top: 72px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ── Navbar ── */
#mainNav {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
#mainNav .navbar-brand { font-family: var(--font-heading); }
.brand-text { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.05em; color: var(--text-primary); }
.brand-dot { color: var(--accent); }
.brand-flag { font-size: 1.2rem; }
#mainNav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.75rem !important;
  transition: color 0.2s;
}
#mainNav .nav-link:hover { color: var(--text-primary) !important; }

/* ── Buttons ── */
.btn-accent {
  background: var(--accent);
  color: #0d1117;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  transition: background 0.2s, transform 0.1s;
}
.btn-accent:hover { background: var(--accent-hover); color: #0d1117; transform: translateY(-1px); }
.btn-outline-accent {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-outline-accent:hover { background: var(--accent); color: #0d1117; }

/* ── Hero ── */
.hero-section {
  min-height: 90vh;
  background: linear-gradient(135deg, #0d1117 0%, #1a2332 50%, #0d1117 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff08" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}
.hero-badge {
  display: inline-block;
  background: rgba(200, 168, 75, 0.15);
  border: 1px solid rgba(200, 168, 75, 0.4);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--accent); }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Section ── */
.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

/* ── Vehicle Cards ── */
.vehicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(200, 168, 75, 0.12);
}
.vehicle-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #1c2330;
}
.vehicle-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vehicle-make {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.vehicle-model {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.vehicle-trim {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.vehicle-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.vehicle-specs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.spec-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spec-pill.electric { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.spec-pill.hybrid { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-status {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}
.badge-available { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge-reserved { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-sold { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-incoming { background: rgba(139,92,246,0.15); color: #a78bfa; }
.badge-featured { background: var(--accent); color: #0d1117; }

/* ── Filter Bar ── */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.filter-bar .form-select,
.filter-bar .form-control {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 4px;
  font-size: 0.875rem;
}
.filter-bar .form-select:focus,
.filter-bar .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,168,75,0.15);
  background: var(--bg-dark);
  color: var(--text-primary);
}
.filter-bar .form-select option { background: var(--bg-card); }

/* ── Delivery Cards ── */
.delivery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.delivery-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.delivery-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.delivery-card-body { padding: 1rem; }
.delivery-flag { font-size: 1.2rem; }
.delivery-country {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.delivery-vehicle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0.25rem 0;
}
.delivery-testimonial {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ── Forms ── */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-control, .form-select {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 4px;
}
.form-control:focus, .form-select:focus {
  background: var(--bg-dark);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(200,168,75,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-card); }

/* ── Footer ── */
.site-footer {
  background: #0a0e14;
  border-top: 1px solid var(--border);
}
.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.footer-links { margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ── Vehicle Detail ── */
.vehicle-detail-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.spec-table td { padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.spec-table td:first-child { color: var(--text-muted); width: 45%; }
.spec-table td:last-child { font-weight: 600; }

/* ── Admin ── */
.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  min-height: 100vh;
  padding: 1.5rem;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 0.25rem;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(200,168,75,0.1);
  color: var(--accent);
}
.admin-table { font-size: 0.875rem; }
.admin-table th { color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.admin-table td { border-bottom: 1px solid rgba(48,54,61,0.5); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Misc ── */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
.page-hero {
  background: linear-gradient(135deg, #0d1117 0%, #1a2332 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.alert-success-dark {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
  border-radius: 6px;
  padding: 1rem 1.25rem;
}
.alert-error-dark {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .vehicle-card-img { height: 180px; }
}
