/* shared.css — iCarSales Network shared styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0f1a;
  --slate: #1a2233;
  --steel: #5a6a80;
  --mist: #8a96a8;
  --cloud: #e8ecf2;
  --white: #ffffff;
  --pipe-green: #00d47b;
  --pipe-dark: #00a85f;
  --pipe-glow: rgba(0, 212, 123, 0.15);
  --alert: #ff4d4d;
  --bg-light: #f7f9fc;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

a { color: var(--pipe-green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
}
.nav-brand em { font-style: normal; color: var(--pipe-green); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}
.nav-links a.active { color: var(--pipe-green); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--ink);
  padding: 80px 40px 60px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.page-hero h1 em { font-style: normal; color: var(--pipe-green); }
.page-hero p {
  font-size: 18px;
  color: var(--mist);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- SECTION ---- */
.section {
  padding: 80px 40px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pipe-green);
  margin-bottom: 16px;
}

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(0,212,123,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--pipe-green);
  color: var(--ink);
}
.btn-primary:hover { background: var(--pipe-dark); color: var(--white); }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--cloud);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--pipe-green); color: var(--pipe-green); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---- SELECT / INPUT ---- */
.select-wrap {
  position: relative;
}
.select-wrap select, .form-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 8px;
  padding: 12px 40px 12px 16px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  width: 100%;
  cursor: pointer;
  transition: border-color 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235a6a80' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-select:focus {
  outline: none;
  border-color: var(--pipe-green);
}

/* ---- TABLE ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--steel);
  border-bottom: 2px solid var(--cloud);
  background: var(--bg-light);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--cloud);
  color: var(--ink);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .highlight {
  color: var(--pipe-green);
  font-weight: 600;
}

/* ---- BADGE ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-green { background: rgba(0,212,123,0.12); color: var(--pipe-dark); }
.badge-red { background: rgba(255,77,77,0.12); color: var(--alert); }
.badge-gray { background: var(--cloud); color: var(--steel); }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--ink);
  padding: 60px 40px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand em { font-style: normal; color: var(--pipe-green); }
.footer-desc { font-size: 13px; color: var(--steel); max-width: 280px; line-height: 1.6; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--steel);
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--pipe-green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--steel);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .page-hero { padding: 60px 24px 40px; }
  .section { padding: 60px 24px; }
  .footer-top { flex-direction: column; gap: 32px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 20px; }
  .page-hero { padding: 48px 20px 32px; }
  .section { padding: 48px 20px; }
}
