/* Arcade guide page CSS (.bg- prefixed, Batocera Guide system) - enqueue only when current post content contains bg-guide markup
   Extracted from the original monolithic style.css during CSS modularization. */

/* ============================================
   BATOCERA GUIDE — child theme additions
   Requires: Barlow Condensed loaded via theme
   or add to functions.php enqueue.
   ============================================ */

/* ── GUIDE WRAPPER ── */
.bg-guide {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #444444;
  max-width: 860px;
}

/* ── HEADINGS — Barlow Condensed, slate blue-grey ── */
.bg-guide h2 {
  font-family: 'Barlow Condensed', 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #768b9e;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.55rem;
  margin: 2rem 0 1.2rem;
}
.bg-guide h3 {
  font-family: 'Barlow Condensed', 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ce1d76;
  margin: 1.4rem 0 0.6rem;
}

/* ── SECTION NUMBER TAG — reuses hp-label concept ── */
.bg-section-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ce1d76;
  margin-bottom: 0.3rem;
}

/* ── HERO TAG — reuses hp-config-tag concept ── */
.bg-hero-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ce1d76;
  border: 1px solid #ce1d76;
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 1rem;
}

/* ── INTRO SUMMARY ── */
.bg-hero-sub {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #888888;
  line-height: 1.8;
  border-left: 2px solid #e0e0e0;
  padding-left: 1rem;
  margin: 1rem 0 2rem;
}

/* ── SECTION BLOCK ── */
.bg-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}
.bg-section:last-of-type {
  border-bottom: none;
}

/* ── CODE & PRE — light grey bg, pink left border ── */
.bg-guide code {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  padding: 1px 6px;
  border-radius: 3px;
  color: #ce1d76;
}
.bg-guide pre {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #ce1d76;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  margin: 0.9rem 0;
  line-height: 1.75;
  color: #333333;
  border-radius: 0 3px 3px 0;
}
.bg-guide pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.bg-c  { color: #aaaaaa; } /* comment */
.bg-p  { color: #2563a8; } /* path */
.bg-k  { color: #ce1d76; } /* command highlight */

/* ── CALLOUTS — reuses hp-highlight-item concept ── */
.bg-callout {
  border-left: 3px solid;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  background: #f4f4f4;
  border-radius: 0 3px 3px 0;
  font-size: 13px;
  line-height: 1.75;
}
.bg-callout-label {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.bg-warn   { border-color: #9a6f00; }
.bg-warn   .bg-callout-label { color: #9a6f00; }
.bg-danger { border-color: #b83232; }
.bg-danger .bg-callout-label { color: #b83232; }
.bg-info   { border-color: #2563a8; }
.bg-info   .bg-callout-label { color: #2563a8; }
.bg-ok     { border-color: #2d7d4f; }
.bg-ok     .bg-callout-label { color: #2d7d4f; }

/* ── STEPS — numbered counter list ── */
.bg-steps { counter-reset: bgstep; margin: 1rem 0; }
.bg-step {
  counter-increment: bgstep;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 0.9rem;
  margin-bottom: 1rem;
  align-items: start;
}
.bg-step::before {
  content: counter(bgstep);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #ce1d76;
  background: rgba(206,29,118,0.07);
  border: 1px solid rgba(206,29,118,0.25);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}
.bg-step-c { font-size: 13px; line-height: 1.78; color: #444444; }
.bg-step-c strong { color: #1a1a1a; font-weight: 600; }

/* ── BULLET LIST — reuses hp-spec-row concept ── */
.bg-list { margin: 0.8rem 0; padding: 0; list-style: none; }
.bg-list li {
  font-size: 13px;
  line-height: 1.78;
  color: #444444;
  padding: 0.4rem 0 0.4rem 1.2rem;
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}
.bg-list li:last-child { border-bottom: none; }
.bg-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #ce1d76;
  font-family: 'DM Mono', monospace;
}
.bg-list li strong { color: #1a1a1a; font-weight: 600; }

/* ── CHECKLIST ── */
.bg-checklist { margin: 0.8rem 0; }
.bg-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  line-height: 1.65;
  color: #444444;
}
.bg-check:last-child { border-bottom: none; }
.bg-check-box {
  width: 14px;
  height: 14px;
  border: 1px solid #cccccc;
  flex-shrink: 0;
  margin-top: 3px;
  border-radius: 2px;
  background: #fff;
}

/* ── CACHE TABLE — reuses hp-spec-table concept ── */
.bg-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 12.5px; }
.bg-table th {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888888;
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #cccccc;
  background: #ebebeb;
}
.bg-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
  line-height: 1.6;
  color: #444444;
}
.bg-table tr:last-child td { border-bottom: none; }
.bg-table td:first-child { color: #ce1d76; font-weight: 600; white-space: nowrap; }
.bg-table td:nth-child(2) { color: #888888; }
.bg-table td:last-child { font-family: 'DM Mono', monospace; font-size: 11px; color: #2563a8; word-break: break-all; }
.bg-table tr:hover td { background: #f4f4f4; }

/* ── EMERGENCY STEPS ── */
.bg-emerg { margin: 1rem 0; }
.bg-emerg-step {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.7rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e0e0e0;
  align-items: start;
}
.bg-emerg-step:last-child { border-bottom: none; }
.bg-emerg-num {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #ce1d76;
  margin-top: 2px;
}
.bg-emerg-label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}
.bg-emerg-cmd {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-left: 2px solid #b83232;
  padding: 0.45rem 0.75rem;
  color: #333333;
  border-radius: 0 3px 3px 0;
  word-break: break-all;
  margin-bottom: 0.3rem;
}
.bg-emerg-note { font-size: 12px; color: #888888; line-height: 1.65; }

/* ── SYMPTOM GRID — reuses hp-card concept ── */
.bg-symptom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #e0e0e0;
  border: 1px solid #e0e0e0;
  margin: 1rem 0;
}
.bg-symptom {
  background: #f4f4f4;
  padding: 1rem 1.1rem;
}
.bg-symptom-title {
  font-family: 'Barlow Condensed', 'Bebas Neue', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #768b9e;
  margin-bottom: 0.4rem;
}
.bg-symptom p { font-size: 12.5px; line-height: 1.65; color: #444444; margin: 0; }

/* ── GOTCHA BOX — reuses hp-highlight-item concept ── */
.bg-gotcha {
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-top: 2px solid #b83232;
  border-radius: 0 0 3px 3px;
  padding: 0.9rem 1.1rem;
  margin: 0.9rem 0;
}
.bg-gotcha-head {
  font-family: 'Barlow Condensed', 'Bebas Neue', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b83232;
  margin-bottom: 0.4rem;
}
.bg-gotcha p { font-size: 13px; color: #444444; line-height: 1.75; margin: 0; }


/* ── NAV BAR ── */
.bg-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: #e0e0e0;
  border: 1px solid #e0e0e0;
  margin-bottom: 2.5rem;
}
.bg-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #888888;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  background: #f4f4f4;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.bg-nav a:hover { color: #ce1d76; background: #ebebeb; }

/* ── FOOTER ── */
.bg-footer {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: #aaaaaa;
  border-top: 1px solid #e0e0e0;
  padding-top: 1.25rem;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .bg-symptom-grid { grid-template-columns: 1fr; }
  .bg-guide h2 { font-size: 1.3rem; }
}

