/* ==========================================================
   All4eBikes — Blog Article Stylesheet
   Style: Electric Editorial
   Enqueue: functions.php → wp_enqueue_scripts → is_singular('post')
   Version: 2.0
   ========================================================== */

/* ----------------------------------------------------------
   GOOGLE FONTS
---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

/* ----------------------------------------------------------
   ROOT TOKENS
---------------------------------------------------------- */
:root {
  --cyan:        #00ccff;
  --cyan-dark:   #0088bb;
  --cyan-deep:   #003d5c;
  --cyan-mid:    #0077aa;
  --cyan-bg:     #f0fbff;
  --cyan-border: rgba(0, 204, 255, 0.25);

  --fg:          #0d1117;
  --fg-muted:    #3a3a3a;
  --fg-subtle:   #888;
  --bg-page:     #ffffff;
  --bg-card:     #ffffff;
  --bg-warn:     #fff8e1;
  --border:      #e8e8e8;
  --border-warm: #ffe082;

  --radius-sm:   8px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 4px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.04);

  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ----------------------------------------------------------
   ARTICLE WRAPPER
---------------------------------------------------------- */
.ba {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-muted);
  background: var(--bg-page);
}
.ba * { box-sizing: border-box; }
.ba a { color: var(--cyan-mid); text-decoration: none; }
.ba a:hover { text-decoration: underline; }
.ba img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
.ba p { margin: 0 0 18px; }
.ba ul, .ba ol { padding-left: 22px; margin: 0 0 16px; }
.ba li { margin-bottom: 7px; }
.ba strong { color: var(--fg); font-weight: 700; }

/* ----------------------------------------------------------
   HERO  — gradient kept, font upgraded
---------------------------------------------------------- */
.ba-hero {
  background: linear-gradient(160deg, #2578c8 0%, #1a5296 45%, #0d2a4a 100%);
  padding: 52px 28px 44px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.ba-hero::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  pointer-events: none;
}
.ba-hero::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 50px;
  width: 110px;
  height: 110px;
  border: 2px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  pointer-events: none;
}
.ba-kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 14px;
}
.ba-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 14px;
  max-width: 780px;
}
.ba-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.ba-meta strong { color: rgba(255, 255, 255, .88); font-weight: 600; }

/* ----------------------------------------------------------
   STAT STRIP
---------------------------------------------------------- */
.ba-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.ba-stat {
  background: var(--bg-card);
  padding: 16px 20px;
  text-align: center;
}
.ba-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--cyan-mid);
  line-height: 1.1;
}
.ba-stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fg-subtle);
  margin-top: 4px;
}

/* ----------------------------------------------------------
   BODY
---------------------------------------------------------- */
.ba-body {
  background: var(--bg-page);
  padding: 32px 28px 48px;
}

/* ----------------------------------------------------------
   TAGS
---------------------------------------------------------- */
.ba-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ba-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--cyan-mid);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-pill);
  padding: 4px 13px;
  background: var(--bg-card);
}

/* ----------------------------------------------------------
   HEADINGS
---------------------------------------------------------- */
.ba h2 {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 800;
  color: var(--fg);
  margin: 40px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.ba h2::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 204, 255, .2));
  border-radius: 2px;
  flex-shrink: 0;
}
.ba h3 {
  font-family: var(--font-heading);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  color: var(--fg);
  margin: 24px 0 10px;
}
.ba h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin: 18px 0 8px;
}

/* ----------------------------------------------------------
   TOC
---------------------------------------------------------- */
.ba-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 0 0 28px;
  box-shadow: var(--shadow-card);
}
.ba-toc strong {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fg-subtle);
  display: block;
  margin-bottom: 14px;
}
.ba-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}
.ba-toc li {
  margin: 0;
  border: none;
}
.ba-toc li::before { display: none; }
.ba-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cyan-bg);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.ba-toc a:hover {
  background: #d6f4ff;
  border-color: rgba(0, 180, 220, .35);
  text-decoration: none;
}
.ba-toc a .toc-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan-dark);
  min-width: 18px;
  flex-shrink: 0;
  line-height: 1;
}
.ba-toc a .toc-text {
  font-size: 13px;
  color: var(--cyan-mid);
  line-height: 1.35;
  font-weight: 500;
}
.ba-toc li.toc-faq a {
  background: #f5f5f5;
  border-color: var(--border);
}
.ba-toc li.toc-faq a .toc-text { color: var(--fg-subtle); }
.ba-toc li.toc-faq a .toc-num  { color: #bbb; }

/* ----------------------------------------------------------
   INTRO / CALLOUT
---------------------------------------------------------- */
.ba-intro {
  background: linear-gradient(135deg, #eef6ff, #f0faff);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 15.5px;
  line-height: 1.78;
  color: #1a2a35;
  border: 1px solid #c8e4f8;
  box-shadow: var(--shadow-card);
}
.ba-intro strong { color: var(--cyan-mid); }

/* ----------------------------------------------------------
   NOTE / INFO / WARNING BOXES
---------------------------------------------------------- */
.ba-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: var(--shadow-card);
}
.ba-note.accent {
  background: var(--cyan-bg);
  border-color: rgba(0, 204, 255, .3);
}
.ba-note.accent strong { color: var(--cyan-mid); }
.ba-warning {
  background: var(--bg-warn);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.7;
}
.ba-warning strong { color: #b45000; }

/* ----------------------------------------------------------
   STEP CARDS
---------------------------------------------------------- */
.ba-step {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 10px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.ba-step-num {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #1a3a6b, #2563b0);
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ba-step-content strong {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}
.ba-step-content p {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.68;
  margin: 0;
}

/* ----------------------------------------------------------
   CHECKLIST
---------------------------------------------------------- */
.ba-checklist {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 16px 0;
  box-shadow: var(--shadow-card);
}
.ba-checklist strong {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  color: var(--fg);
}
.ba-checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ba-checklist li {
  font-size: 13.5px;
  color: var(--fg-muted);
  padding: 6px 0 6px 22px;
  border-bottom: 1px solid #f3f3f3;
  position: relative;
}
.ba-checklist li:last-child { border-bottom: none; }
.ba-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 10px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

/* ----------------------------------------------------------
   SPEC ROWS  (inside cards)
---------------------------------------------------------- */
.ba-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f3f3;
  font-size: 13px;
}
.ba-spec-row:last-child { border-bottom: none; }
.ba-spec-label {
  color: var(--fg-subtle);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ba-spec-val { font-weight: 700; color: var(--fg); font-size: 13px; }

/* ----------------------------------------------------------
   GRIDS
---------------------------------------------------------- */
.ba-two-col,
.ba-three-col,
.ba-four-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0;
}
@media (min-width: 600px) {
  .ba-two-col   { grid-template-columns: 1fr 1fr; }
  .ba-four-col  { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .ba-three-col { grid-template-columns: 1fr 1fr 1fr; }
  .ba-four-col  { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ----------------------------------------------------------
   TABLES
---------------------------------------------------------- */
.ba-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.ba-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 420px;
  background: var(--bg-card);
}
.ba-table thead tr {
  background: linear-gradient(90deg, #1a3a6b, #0d2a4a);
}
.ba-table thead th {
  padding: 12px 14px;
  text-align: left;
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.ba-table tbody tr:nth-child(odd)  { background: #fafafa; }
.ba-table tbody tr:nth-child(even) { background: var(--bg-card); }
.ba-table tbody tr:hover           { background: var(--cyan-bg); }
.ba-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  color: var(--fg-muted);
}
.ba-table td:first-child { font-weight: 600; color: var(--fg); }
.ba-table tr.ba-hl td { color: var(--cyan-mid); font-weight: 700; background: var(--cyan-bg); }
.ba-table .ba-badge {
  display: inline-block;
  background: var(--cyan);
  color: #003d4d;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: middle;
}

/* ----------------------------------------------------------
   BIKE CARD
---------------------------------------------------------- */
.ba-bike-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
  margin: 14px 0;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.ba-bike-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2578c8, #00ccff);
}
.ba-bike-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 2px;
}
.ba-bike-verdict {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan-mid);
  margin-bottom: 10px;
}
.ba-bike-price {
  display: inline-block;
  background: linear-gradient(135deg, #eef6ff, #f0faff);
  border: 1px solid #c8e4f8;
  border-radius: var(--radius-pill);
  padding: 4px 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--cyan-mid);
  margin-bottom: 16px;
}

/* ----------------------------------------------------------
   CASE STUDY / PROFILE CARD
---------------------------------------------------------- */
.ba-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.ba-case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2578c8, #00ccff);
}
.ba-case-name     { font-family: var(--font-heading); font-size: 14px; font-weight: 800; color: var(--fg); margin-bottom: 2px; }
.ba-case-sub      { font-size: 12px; color: var(--fg-subtle); margin-bottom: 12px; }
.ba-case-annual   { font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--cyan-mid); margin-top: 10px; }
.ba-case-annual span { font-size: 12px; font-weight: 400; color: var(--fg-subtle); }

/* ----------------------------------------------------------
   CTA STRIP
---------------------------------------------------------- */
.ba-cta {
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6b 100%);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  margin: 40px 0 16px;
}
.ba-cta h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.ba-cta p {
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ----------------------------------------------------------
   VERDICT BOX
---------------------------------------------------------- */
.ba-verdict {
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6b 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 32px 0;
}
.ba-verdict-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.ba-verdict h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}
.ba-verdict p { color: rgba(255, 255, 255, .7); font-size: 14px; margin-bottom: 8px; }
.ba-verdict ul { list-style: none; padding: 0; margin-top: 12px; }
.ba-verdict li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  display: flex;
  gap: 10px;
}
.ba-verdict li::before { content: '→'; color: var(--cyan); font-weight: 700; flex-shrink: 0; }
.ba-verdict li:last-child { border-bottom: none; }

/* ----------------------------------------------------------
   BUTTONS
---------------------------------------------------------- */
.ba-btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ba-btn {
  display: inline-block;
  background: linear-gradient(90deg, #2578c8, #0d5599);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: opacity .2s;
}
.ba-btn:hover { opacity: .85; text-decoration: none; color: #fff; }
.ba-btn.secondary {
  background: var(--bg-card);
  color: var(--cyan-mid);
  border: 1.5px solid var(--cyan-border);
}
.ba-btn.secondary:hover { background: var(--cyan-bg); color: var(--cyan-mid); }
.ba-btn.ghost {
  background: transparent;
  color: rgba(255, 255, 255, .85);
  border: 1.5px solid rgba(255, 255, 255, .3);
}
.ba-btn.ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ----------------------------------------------------------
   FAQ
---------------------------------------------------------- */
.ba-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}
.ba-faq-item summary {
  padding: 15px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .15s;
}
.ba-faq-item summary::-webkit-details-marker { display: none; }
.ba-faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--cyan-mid);
  flex-shrink: 0;
  margin-left: 12px;
  line-height: 1;
}
.ba-faq-item[open] summary { background: var(--cyan-bg); }
.ba-faq-item[open] summary::after { content: '−'; }
.ba-faq-answer {
  padding: 14px 18px 16px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}

/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */
@media (max-width: 640px) {
  .ba-hero    { padding: 36px 16px 30px; }
  .ba-body    { padding: 24px 16px 40px; }
  .ba-cta     { padding: 24px 16px; }
  .ba-verdict { padding: 22px 16px; }
  .ba-step    { flex-direction: column; gap: 10px; }
  .ba-step-num { margin-top: 0; }
  .ba-toc ul  { grid-template-columns: 1fr; }
  .ba-toc a   { padding: 9px 11px; }
}