/* ════════════════════════════════════════════════════════════
   MOTORGRID — compare-hub.css
   Comparison Hub page styles — Light Theme Redesign
   ════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ──────────────────────────────────────── */
:root {
  /* Light base palette */
  --c-bg: #f5f4f1;
  --c-bg-alt: #eceae5;
  --c-surface: #ffffff;
  --c-surface-raised: #fafaf8;
  --c-border: #dedad2;
  --c-border-strong: #c8c3b8;

  /* Text */
  --c-text: #1a1814;
  --c-text-mid: #3d3a34;
  --c-text-dim: #7a7670;

  /* Accent A — warm orange-red (retained) */
  --c-a: #d63c08;
  --c-a-lt: #e8480f;
  --c-a-bg: rgba(214, 60, 8, 0.07);
  --c-a-bg-mid: rgba(214, 60, 8, 0.13);

  /* Accent B — electric blue (retained) */
  --c-b: #0a6fd4;
  --c-b-lt: #1a7ee8;
  --c-b-bg: rgba(10, 111, 212, 0.07);
  --c-b-bg-mid: rgba(10, 111, 212, 0.13);

  /* Win green */
  --c-win: #0f9e59;

  --c-font-display: "Barlow Condensed", sans-serif;
  --c-font-body: "Barlow", sans-serif;
  --c-font-mono: "DM Mono", monospace;

  --c-max: 1180px;
  --c-radius: 8px;
  --c-radius-lg: 14px;
}

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap");

/* ── PAGE BASE ───────────────────────────────────────────── */
body.hub-page {
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  font-family: var(--c-font-body);
}

/* ── SHARED CONTAINER ────────────────────────────────────── */
.hub-container {
  max-width: var(--c-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── BREADCRUMB ─────────────────────────────────────────── */
.hub-breadcrumb {
  position: relative;
  max-width: var(--c-max);
  margin: 0 auto 32px;
  font-size: 0.78rem;
  color: var(--c-text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hub-breadcrumb a {
  color: var(--c-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.hub-breadcrumb a:hover {
  color: var(--c-a);
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hub-hero {
  position: relative;
  background: var(--c-surface);
  overflow: hidden;
  padding: 72px 20px 80px;
  border-bottom: 1px solid var(--c-border);
}

/* Diagonal grid lines — light version */
.hub-hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hub-hero-grid-lines span {
  position: absolute;
  top: -40%;
  width: 1px;
  height: 200%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--c-border),
    transparent
  );
  transform: rotate(15deg);
}
.hub-hero-grid-lines span:nth-child(1) {
  left: 8%;
  opacity: 0.6;
}
.hub-hero-grid-lines span:nth-child(2) {
  left: 22%;
  opacity: 0.4;
}
.hub-hero-grid-lines span:nth-child(3) {
  left: 42%;
  opacity: 0.55;
}
.hub-hero-grid-lines span:nth-child(4) {
  left: 63%;
  opacity: 0.4;
}
.hub-hero-grid-lines span:nth-child(5) {
  left: 80%;
  opacity: 0.6;
}
.hub-hero-grid-lines span:nth-child(6) {
  left: 94%;
  opacity: 0.35;
}

.hub-hero-inner {
  position: relative;
  max-width: var(--c-max);
  margin: 0 auto;
}

.hub-eyebrow {
  font-family: var(--c-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 14px;
}

.hub-title {
  font-family: var(--c-font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}
.hub-title-line1 {
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--c-a-lt);
  letter-spacing: -0.02em;
}
.hub-title-line2 {
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--c-text);
  letter-spacing: -0.02em;
  margin-left: clamp(24px, 4vw, 64px);
}

.hub-subtitle {
  font-size: 0.97rem;
  color: var(--c-text-dim);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* Stats row */
.hub-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.hub-stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px 0 0;
}
.hub-stat:first-child {
  padding-left: 0;
}
.hub-stat-num {
  font-family: var(--c-font-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--c-text);
  letter-spacing: -0.02em;
}
.hub-stat-label {
  font-family: var(--c-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-top: 3px;
}
.hub-stat-div {
  width: 1px;
  height: 36px;
  background: var(--c-border-strong);
  margin-right: 28px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════════════════ */
.hub-main {
  padding-bottom: 0;
}
.hub-section {
  padding: 64px 0;
  border-top: 1px solid var(--c-border);
}
.hub-section-alt {
  background: var(--c-bg-alt);
}
.hub-section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
}
.hub-section-title {
  font-family: var(--c-font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--c-text);
}
.hub-section-label {
  font-family: var(--c-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-a-lt);
  background: var(--c-a-bg);
  border: 1px solid rgba(214, 60, 8, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ════════════════════════════════════════════════════════════
   FEATURED CARD
   ════════════════════════════════════════════════════════════ */
.hub-featured-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.25s,
    transform 0.2s,
    border-color 0.25s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.hub-featured-card:hover {
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--c-a);
}

/* Background accent lines inside featured card */
.hub-fc-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hub-fc-bg-lines span {
  position: absolute;
  top: -30%;
  width: 1px;
  height: 200%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--c-border),
    transparent
  );
  transform: rotate(20deg);
}
.hub-fc-bg-lines span:nth-child(1) {
  left: 30%;
  opacity: 0.5;
}
.hub-fc-bg-lines span:nth-child(2) {
  left: 55%;
  opacity: 0.35;
}
.hub-fc-bg-lines span:nth-child(3) {
  left: 78%;
  opacity: 0.4;
}

.hub-fc-badge {
  grid-column: 1 / -1;
  font-family: var(--c-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-a-lt);
  background: var(--c-a-bg);
  border-bottom: 1px solid rgba(214, 60, 8, 0.2);
  padding: 8px 28px;
}

.hub-fc-content {
  grid-column: 1;
  grid-row: 2;
  padding: 32px 32px 28px;
  position: relative;
}

.hub-fc-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.hub-fc-segment {
  font-family: var(--c-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.hub-fc-updated {
  font-family: var(--c-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--c-win);
}

.hub-fc-matchup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.hub-fc-bike {
  font-family: var(--c-font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hub-fc-bike-a {
  color: var(--c-a-lt);
}
.hub-fc-bike-b {
  color: var(--c-b-lt);
}

.hub-fc-vs-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-fc-vs {
  font-family: var(--c-font-display);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--c-text-dim);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border-strong);
  border-radius: 5px;
  padding: 4px 10px;
}

.hub-fc-desc {
  font-size: 0.95rem;
  color: var(--c-text-mid);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 22px;
}

.hub-fc-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hub-pill {
  font-family: var(--c-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  border-radius: 5px;
  padding: 5px 12px;
}
.hub-pill-a {
  color: var(--c-a-lt);
  background: var(--c-a-bg);
  border: 1px solid rgba(214, 60, 8, 0.25);
}
.hub-pill-b {
  color: var(--c-b-lt);
  background: var(--c-b-bg);
  border: 1px solid rgba(10, 111, 212, 0.25);
}

/* Bike images panel */
.hub-fc-bikes-row {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 240px;
  padding: 0 24px 24px 0;
  gap: 8px;
  background: linear-gradient(
    135deg,
    var(--c-bg-alt) 0%,
    var(--c-surface) 100%
  );
}
.hub-fc-bike-img {
  width: 200px;
  display: flex;
  align-items: flex-end;
}
.hub-fc-bike-img img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}
.hub-fc-img-a {
  transform: scaleX(-1);
}

.hub-fc-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--c-font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-a-lt);
  background: var(--c-a-bg);
  border-top: 1px solid rgba(214, 60, 8, 0.2);
  padding: 14px 28px;
  transition:
    background 0.2s,
    color 0.2s;
}
.hub-fc-arrow {
  transition: transform 0.2s;
}
.hub-featured-card:hover .hub-fc-cta {
  background: var(--c-a-bg-mid);
}
.hub-featured-card:hover .hub-fc-arrow {
  transform: translateX(4px);
}

/* ════════════════════════════════════════════════════════════
   COMPARISON CARDS GRID
   ════════════════════════════════════════════════════════════ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.2s;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.hub-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-a-lt), var(--c-b-lt));
  opacity: 0;
  transition: opacity 0.25s;
}
.hub-card:hover {
  border-color: var(--c-border-strong);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}
.hub-card:hover::before {
  opacity: 1;
}

.hub-card-segment {
  font-family: var(--c-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 14px;
}

.hub-card-matchup {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hub-card-bike {
  font-family: var(--c-font-display);
  font-weight: 900;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.hub-card-a {
  color: var(--c-a-lt);
}
.hub-card-b {
  color: var(--c-b-lt);
}

.hub-card-vs {
  font-family: var(--c-font-display);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--c-text-dim);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.hub-card-desc {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.hub-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.hub-card-tag {
  font-family: var(--c-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-a-lt);
  background: var(--c-a-bg);
  border: 1px solid rgba(214, 60, 8, 0.25);
  border-radius: 3px;
  padding: 2px 7px;
}
.hub-card-updated {
  font-family: var(--c-font-mono);
  font-size: 0.62rem;
  color: var(--c-text-dim);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════════════════════
   CTA BAND
   ════════════════════════════════════════════════════════════ */
.hub-cta-band {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 56px 0;
}
.hub-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.hub-cta-eyebrow {
  font-family: var(--c-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 8px;
}
.hub-cta-title {
  font-family: var(--c-font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--c-text);
}
.hub-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--c-font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-a-lt);
  background: var(--c-a-bg-mid);
  border: 1px solid rgba(214, 60, 8, 0.35);
  padding: 15px 28px;
  border-radius: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}
.hub-cta-btn:hover {
  background: var(--c-a-lt);
  color: #fff;
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hub-featured-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .hub-fc-badge {
    grid-column: 1;
  }
  .hub-fc-bikes-row {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    padding: 0 24px 24px;
    min-width: unset;
  }
  .hub-fc-bike-img {
    width: 160px;
  }
  .hub-fc-bike-img img {
    height: 90px;
  }
}

@media (max-width: 700px) {
  .hub-hero {
    padding: 60px 16px 56px;
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .hub-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hub-fc-content {
    padding: 24px 20px 20px;
  }
  .hub-fc-bikes-row {
    padding: 0 16px 20px;
  }
  .hub-fc-bike-img {
    width: 130px;
  }
  .hub-fc-bike-img img {
    height: 72px;
  }
  .hub-stats {
    gap: 0;
  }
  .hub-stat-num {
    font-size: 1.6rem;
  }
  .hub-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hub-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── PRINT ─────────────────────────────────────────── */
@media print {
  body.hub-page {
    background: #fff;
    color: #000;
  }
  .hub-cta-band {
    display: none;
  }
}
