/**
 * DealerPro Elite — Sell hub page styles
 *
 * Source mockup(s):
 *   - mockups/heavy-equipment/mockup-1M-sell.html
 *   - mockups/cars/mockup-2M-sell.html
 * Loaded conditionally on page-sell.php via wp_enqueue_style.
 *
 * The Sell hub is a router landing page that lets the user choose between two paths:
 *   - Trade-in (apply current unit value toward an inventory upgrade)
 *   - Consignment / sell-with-us (we sell your unit on your behalf)
 *
 * @package DealerPro_Elite
 * @since 2.0.0
 */

/* ─── PATH GRID (2 cards: trade-in / consignment) ──────── */
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  margin-top: var(--s-7);
}
.path-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-7);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}
.path-card:hover,
.path-card:focus-visible {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.path-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.path-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
}
.path-card__icon svg {
  width: 26px;
  height: 26px;
}
.path-card__title {
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}
.path-card__desc {
  font-size: var(--t-sm);
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: var(--s-5);
  flex: 1;
}
/* Anchor wrapper resets — link is the entire card; force inherit colors,
   but DO NOT override .btn variants — they need their own foreground colour
   (otherwise "Start Trade-Up" inherits white-on-yellow → unreadable). */
a.path-card,
a.path-card:visited,
a.path-card:hover { color: inherit; }
a.path-card *:not(.btn):not(.btn *) { color: inherit; }
a.path-card .btn--primary { color: var(--accent-fg); }
a.path-card .btn--ghost   { color: var(--text); }
a.path-card .btn--cta     { color: var(--cta-fg); }

.path-card__kicker {
  margin-bottom: var(--s-2);
}
.path-card__lead {
  font-size: var(--t-sm);
  color: var(--text-soft, var(--text-2));
  line-height: 1.6;
  margin: 0 0 var(--s-5);
}
.path-card__stats {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.path-card__stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
}
.path-card__stat-lbl {
  font-size: var(--t-xs);
  color: var(--text-muted, var(--text-3));
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.path-card__stat-val {
  font-size: var(--t-sm);
  color: var(--text);
  font-weight: 600;
  text-align: right;
}
.path-card__features {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
.path-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--t-sm);
  color: var(--text);
  line-height: 1.5;
}
.path-card__features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 2px;
}
.path-card__features li > span {
  flex: 1;
}
.path-card__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.path-card__cta svg {
  width: 14px;
  height: 14px;
  transition: var(--transition);
}
.path-card:hover .path-card__cta svg {
  transform: translateX(4px);
}
.path-card--trade .path-card__icon {
  background: var(--accent-soft);
  color: var(--accent);
}
/* `a.path-card.path-card--consign` (0,3,2) — outranks the
   `a.path-card :not(.btn):not(.btn *)` color-inherit rule (0,3,1) that
   would otherwise force the icon to white. The double-class compound is
   ugly but necessary — the inherit rule is intentional (path-card is a
   link wrapper that needs to color-inherit text children, but icons are
   the exception). */
a.path-card.path-card--consign .path-card__icon {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 35%, transparent);
  color: var(--success);
}
@media (max-width: 720px) {
  .path-grid { grid-template-columns: 1fr; }
  .path-card__stat { flex-direction: column; align-items: flex-start; gap: 4px; }
  .path-card__stat-val { text-align: left; }
}

/* ─── COMPARISON TABLE (trade-in vs consignment) ───────── */
.comparison {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table thead { background: var(--bg-1); }
.compare-table th {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare-table th:first-child { color: var(--text-muted); }
.compare-table td {
  padding: var(--s-4) var(--s-5);
  font-size: var(--t-sm);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table tr.highlight {
  background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--accent) 14%, transparent), var(--accent-soft));
  position: relative;
  box-shadow: inset 0 0 0 1px var(--accent-border), 0 0 24px var(--accent-glow);
}
.compare-table tr.highlight td {
  border-color: var(--accent-border);
  color: var(--text);
  font-weight: 600;
}
.compare-table tr.highlight th,
.compare-table tr.highlight td:nth-child(2) {
  color: var(--accent);
  font-weight: 700;
}
.compare-table .badge-best {
  display: inline-block;
  padding: 3px 8px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--r-xs);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-left: var(--s-2);
  vertical-align: middle;
}
.compare-table__note {
  margin-top: var(--s-4);
  font-size: var(--t-xs);
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 768px) {
  .compare-table th,
  .compare-table td {
    padding: var(--s-3) var(--s-3);
    font-size: var(--t-xs);
  }
}

/* ─── BOTTOM FOOTNOTE (path-pick CTA) ───────────────────── */
.sell-page__footnote {
  text-align: center;
  margin-top: var(--s-7);
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.6;
}
.sell-page__phone {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-border);
  transition: var(--transition);
}
.sell-page__phone:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}
