/* ============================================================
   Ready? China! — Guide Page Styles
   guide.css — loaded ONLY on guide pages, not on index.html
   All CSS variables come from style.css which is also linked.

   SECTIONS:
   1.  Guide layout & breadcrumb
   2.  Guide hero block
   3.  Step overview cards (4-up grid)
   4.  Step detail sections
   5.  Sub-step list
   6.  Callout boxes (tip, important, warning, info)
   7.  Screenshot placeholder
   8.  Email capture block
   9.  Related guides
   10. Responsive
============================================================ */

/* ── 1. LAYOUT & BREADCRUMB ─────────────────────────────── */
.guide-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .4; }
.breadcrumb-current { color: var(--text-mid); }

/* ── 2. GUIDE HERO ──────────────────────────────────────── */
.guide-hero {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.guide-hero-icon {
  font-size: 52px;
  flex-shrink: 0;
  line-height: 1;
}
.guide-hero-eyebrow {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.guide-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 10px;
}
.guide-hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.guide-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.guide-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.guide-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.guide-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.guide-btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192,57,43,0.25);
}
.guide-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: white;
  color: var(--text-mid);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  border: 1px solid var(--border);
  cursor: pointer;
}
.guide-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── 3. STEP OVERVIEW GRID ──────────────────────────────── */
.steps-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.step-overview-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: all .2s;
}
.step-overview-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(192,57,43,0.08);
  transform: translateY(-2px);
}
.step-ov-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 10px;
  font-family: 'Playfair Display', serif;
}
.step-ov-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.step-ov-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── 4. STEP DETAIL SECTIONS ────────────────────────────── */
.guide-section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.guide-step {
  margin-bottom: 48px;
}
.guide-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.guide-step-num {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}
.guide-step h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--text);
  line-height: 1.2;
}

.guide-step-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.guide-step-body.full-width {
  grid-template-columns: 1fr;
}

/* ── 5. SUB-STEP LIST ───────────────────────────────────── */
.substep-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.substep-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}
.substep-num {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── 6. CALLOUT BOXES ───────────────────────────────────── */
.callout {
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.callout-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.callout-tip {
  background: var(--gold-soft);
  border-left: 3px solid var(--gold-light);
  color: var(--text-mid);
}
.callout-tip .callout-label { color: var(--gold); }

.callout-important {
  background: rgba(230, 126, 34, 0.08);
  border-left: 3px solid #e67e22;
  color: var(--text-mid);
}
.callout-important .callout-label { color: #e67e22; }

.callout-warning {
  background: var(--red-soft);
  border-left: 3px solid var(--accent);
  color: var(--text-mid);
}
.callout-warning .callout-label { color: var(--accent); }

.callout-info {
  background: rgba(52, 152, 219, 0.08);
  border-left: 3px solid #3498db;
  color: var(--text-mid);
}
.callout-info .callout-label { color: #3498db; }

/* ── 7. SCREENSHOT PLACEHOLDER ──────────────────────────── */
.screenshot-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.screenshot-placeholder {
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 20px;
  min-height: 260px;
}
.screenshot-placeholder-icon { font-size: 32px; opacity: .4; }
.screenshot-placeholder-label { opacity: .6; line-height: 1.5; }

/* For actual images once added */
.screenshot-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Multi-screenshot row */
.screenshot-row {
  display: flex;
  gap: 8px;
}
.screenshot-row .screenshot-wrap {
  flex: 1;
}

/* ── 8. EMAIL CAPTURE BLOCK ─────────────────────────────── */
.guide-email-capture {
  background: linear-gradient(135deg, var(--accent) 0%, #8b1a1a 100%);
  border-radius: 16px;
  padding: 36px 40px;
  text-align: center;
  margin: 48px 0;
  color: white;
}
.guide-email-capture h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 8px;
}
.guide-email-capture p {
  font-size: 13px;
  opacity: .85;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.guide-email-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.guide-email-input {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  width: 260px;
  font-family: 'DM Sans', sans-serif;
}
.guide-email-input::placeholder { color: rgba(255,255,255,.6); }
.guide-email-input:focus { border-color: rgba(255,255,255,.7); }
.guide-email-submit {
  background: white;
  color: var(--accent);
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}
.guide-email-submit:hover { background: var(--bg2); }
.guide-email-success {
  font-size: 13px;
  color: rgba(255,255,255,.9);
  display: none;
  margin-top: 8px;
}
.guide-email-note {
  font-size: 11px;
  opacity: .6;
}

/* ── 9. RELATED GUIDES ──────────────────────────────────── */
.related-guides {
  margin-top: 48px;
}
.related-guides h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.related-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  transition: all .2s;
  display: block;
}
.related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(192,57,43,0.08);
  transform: translateY(-2px);
}
.related-card-icon { font-size: 24px; margin-bottom: 8px; }
.related-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.related-card-desc { font-size: 11px; color: var(--text-muted); }


/* ── 10. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 640px) {
  .guide-wrap { padding: 70px 16px 40px; }
  .guide-hero  { flex-direction: column; padding: 24px 20px; gap: 16px; }
  .guide-hero-icon { font-size: 40px; }
  .guide-step-body { grid-template-columns: 1fr; }
  .guide-email-capture { padding: 28px 20px; }
  .guide-email-input { width: 100%; }
  .steps-overview { grid-template-columns: repeat(2, 1fr); }
}
