/* Hub index pages — Phase 4 Slice 4
 * URLs: /wheels-by-year/, /wheels-by-vehicle/, /wheels-by-part/
 *
 * Single stylesheet shared across all 3 pages; layout branches off
 * body class via the .aor-hub-index--year / --vehicle / --part modifier
 * (template applies it).
 */

.aor-hub-index { background: #0b1220; color: #e2e8f0; padding: 24px 20px; min-height: 60vh; }
.aor-hub-hero { max-width: 800px; margin: 0 auto 18px; }
.aor-hub-hero h1 { color: #fff; font-size: 28px; margin: 0 0 8px; letter-spacing: -0.5px; }
.aor-hub-hero p { color: #cbd5e1; line-height: 1.6; margin: 0; }

.aor-hub-stats {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 10px 14px; background: rgba(220,38,38,0.05);
  border-radius: 4px; max-width: 800px; margin: 0 auto 24px;
  font-size: 12px;
}
.aor-hub-stats span { color: #cbd5e1; }
.aor-hub-stats strong { color: #fff; font-weight: 700; }

.aor-hub-section-label {
  color: #94a3b8; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; margin: 14px auto 8px; max-width: 1100px;
  font-weight: 700;
}

/* ── Year page ──────────────────────────────────────────────────────── */
.aor-hub-year-cornerstones {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  max-width: 1100px; margin: 0 auto 16px;
}
.aor-hub-year-card {
  background: linear-gradient(180deg,#1e293b,#0f172a);
  border: 1px solid #334155; border-radius: 4px; padding: 14px;
  text-align: center; text-decoration: none; color: inherit;
  transition: transform 200ms ease, border-color 200ms ease;
}
.aor-hub-year-card:hover { transform: translateY(-2px); border-color: var(--aor-red, #db0000); }
.aor-hub-year-card .yr { color: #fff; font-weight: 800; font-size: 18px; }
.aor-hub-year-card .stock { color: #94a3b8; font-size: 11px; margin-top: 2px; }
.aor-hub-year-card.aor-hub-year-card--cornerstone { border-color: var(--aor-red, #db0000); }

.aor-hub-year-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
  max-width: 1100px; margin: 0 auto;
}
.aor-hub-year-grid a {
  background: #1e293b; padding: 8px 0; text-align: center; color: #cbd5e1;
  border-radius: 3px; text-decoration: none; font-size: 12px; font-weight: 600;
}
.aor-hub-year-grid a:hover { background: #334155; color: #fff; }
.aor-hub-year-grid a.is-empty { opacity: 0.4; }

/* ── Vehicle page ───────────────────────────────────────────────────── */
.aor-hub-az {
  display: flex; flex-wrap: wrap; gap: 4px; max-width: 1100px;
  margin: 0 auto 18px; padding-bottom: 14px; border-bottom: 1px solid #1e293b;
  position: sticky; top: 60px; background: #0b1220; z-index: 5;
  padding-top: 8px;
}
.aor-hub-az-letter {
  background: #1e293b; color: #cbd5e1; border: none; padding: 6px 10px;
  font-size: 12px; border-radius: 3px; cursor: pointer; min-width: 28px;
  font-weight: 700;
}
.aor-hub-az-letter.has-content { background: #475569; color: #fff; }
.aor-hub-az-letter[disabled]   { opacity: 0.3; cursor: default; }
.aor-hub-az-letter.is-active   { background: var(--aor-red, #db0000); color: #fff; }
.aor-hub-az-letter:focus-visible { outline: 2px solid var(--aor-red, #db0000); outline-offset: 1px; }

.aor-hub-makes-list { max-width: 1100px; margin: 0 auto; }
.aor-hub-make-row { padding: 14px 0; border-bottom: 1px solid #1e293b; }
.aor-hub-make-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.aor-hub-make-name { color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.aor-hub-make-name:hover { color: var(--aor-red, #db0000); }
.aor-hub-make-stock { color: #64748b; font-size: 12px; white-space: nowrap; }
.aor-hub-make-combos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 8px; padding-left: 12px; border-left: 2px solid #334155;
}
.aor-hub-combo-pill {
  background: #1e293b; padding: 6px 8px; font-size: 11px; color: #cbd5e1;
  border-radius: 3px; text-decoration: none; text-align: center;
}
.aor-hub-combo-pill:hover { background: #334155; color: #fff; }

.aor-hub-load-more {
  display: block; margin: 20px auto; padding: 10px 20px;
  background: #1e293b; color: #cbd5e1; border: 1px solid #475569;
  border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.aor-hub-load-more:hover { background: #334155; color: #fff; }
.aor-hub-load-more:disabled { opacity: 0.5; cursor: wait; }

/* ── Parts page ─────────────────────────────────────────────────────── */
.aor-hub-parts-search {
  background: #1e293b; border: 1px solid #475569; padding: 12px 16px;
  border-radius: 4px; color: #cbd5e1; max-width: 1100px;
  width: 100%; box-sizing: border-box; margin: 0 auto 18px; display: block;
  font-size: 14px;
}
.aor-hub-parts-search:focus { outline: 2px solid var(--aor-red, #db0000); outline-offset: 1px; }
.aor-hub-parts-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  max-width: 1100px; margin: 0 auto;
}
.aor-hub-part-pill {
  background: #1e293b; padding: 10px 6px; font-size: 12px; color: #cbd5e1;
  border-radius: 3px; text-align: center; font-family: monospace;
  text-decoration: none; font-weight: 600;
}
.aor-hub-part-pill:hover { background: #334155; color: #fff; }

.aor-hub-photo-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg,#3b82f6,#1d4ed8);
  color: #fff; padding: 14px; border-radius: 4px; text-align: center;
  text-decoration: none; max-width: 1100px; margin: 18px auto 0;
  font-size: 14px;
}
.aor-hub-photo-cta:hover { filter: brightness(1.1); color: #fff; }
.aor-hub-photo-cta .material-symbols-rounded { font-size: 20px; }

/* ── Cross-link strip (shared) ──────────────────────────────────────── */
.aor-hub-crosslinks {
  max-width: 1100px; margin: 32px auto 0; padding: 16px 0;
  border-top: 1px solid #1e293b;
}
.aor-hub-crosslinks h3 {
  color: #94a3b8; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; margin: 0 0 8px; font-weight: 700;
}
.aor-hub-crosslinks div { display: flex; gap: 12px; flex-wrap: wrap; }
.aor-hub-crosslinks a {
  background: #1e293b; padding: 8px 14px; border-radius: 4px;
  color: #cbd5e1; text-decoration: none; font-size: 13px; font-weight: 600;
}
.aor-hub-crosslinks a:hover { background: #334155; color: #fff; }

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .aor-hub-index { padding: 16px 12px; }
  .aor-hub-hero h1 { font-size: 22px; }
  .aor-hub-year-cornerstones { grid-template-columns: repeat(2, 1fr); }
  .aor-hub-year-grid         { grid-template-columns: repeat(4, 1fr); }
  .aor-hub-make-combos       { grid-template-columns: repeat(2, 1fr); }
  .aor-hub-parts-grid        { grid-template-columns: repeat(3, 1fr); }
  .aor-hub-stats             { font-size: 11px; gap: 12px; }
  .aor-hub-az                { top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .aor-hub-year-card { transition: none; }
}
