/* =============================================
   ScoZo Guide — guide.css
   Additive to style.css. Target < 8KB.
   ============================================= */

/* ── Nav: always show dark background on guide pages ── */
body > nav { background: rgba(7,7,7,0.97) !important; border-bottom-color: rgba(255,255,255,0.07) !important; }

/* ── Shared wrap ── */
.guide-wrap { max-width: 1560px; margin: 0 auto; padding: 0 5%; }

/* ── Hub ── */
.guide-new-strip { display: inline-block; background: #111; border: 1px solid #2a2a2a; border-radius: 6px; padding: 0.3rem 0.9rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.1rem; letter-spacing: 0.04em; }
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.guide-card { display: flex; flex-direction: column; background: #0d0d0d; border: 1px solid #1c1c1c; border-radius: 14px; padding: 1.75rem; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.guide-card:hover { border-color: #3a3a3a; background: #111; }
.guide-card-icon { font-size: 1.8rem; margin-bottom: 1rem; line-height: 1; }
.guide-card-title { font-family: var(--font-sans); font-weight: 600; color: var(--text-light); font-size: 1.1rem; margin-bottom: 0.45rem; }
.guide-card-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.guide-card-arrow { margin-top: 1.25rem; font-size: 0.85rem; color: #555; }
.guide-card:hover .guide-card-arrow { color: #aaa; }
@media (max-width: 1000px) { .guide-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guide-cards { grid-template-columns: 1fr; } }

/* ── Docs shell: sticky sidebar | content ── */
.guide-wrap-docs { max-width: none; padding: 5.25rem 0 0; }
.guide-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; min-height: calc(100vh - 5.25rem); }
html { scroll-behavior: smooth; }

/* ── Page header (inside content column) ── */
.guide-page-header { padding: 0 0 2.5rem; margin-bottom: 3rem; border-bottom: 1px solid #1a1a1a; }
.guide-breadcrumb { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.guide-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--text-light); }
.guide-breadcrumb span { margin: 0 0.45em; }
.guide-page-header h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); color: var(--text-light); margin-bottom: 0.75rem; }
.guide-page-header p { color: var(--text-muted); font-size: 1.15rem; line-height: 1.65; max-width: 62ch; margin: 0; }

/* ── Left sidebar ── */
.guide-sidebar { position: sticky; top: 5.25rem; height: calc(100vh - 5.25rem); overflow-y: auto; padding: 2.5rem 1.25rem 2rem 2rem; border-right: 1px solid #161616; box-sizing: border-box; }
.guide-sidebar-toggle { display: none; width: 100%; background: #111; border: 1px solid #2a2a2a; color: var(--text-light); padding: 0.65rem 1rem; border-radius: 8px; font-size: 0.95rem; cursor: pointer; text-align: left; font-family: var(--font-sans); }
.guide-sidebar-toggle::after { content: ' ▾'; }
.guide-sidebar-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #666; margin: 0 0 0.9rem 0.8rem; }
.guide-sidebar ul { list-style: none; padding: 0; margin: 0; }
.guide-sidebar li + li { margin-top: 0.15rem; }
.guide-sidebar a { display: block; font-size: 1rem; color: #8a8a8a; text-decoration: none; padding: 0.55rem 0.8rem; border-radius: 8px; transition: background 0.12s, color 0.12s; }
.guide-sidebar a:hover { color: var(--text-light); background: rgba(255,255,255,0.05); }
.guide-sidebar a.active { color: var(--text-light); background: rgba(255,255,255,0.08); font-weight: 500; }

/* ── Content column ── */
.guide-steps { width: 100%; max-width: 1020px; margin: 0 auto; padding: 3.5rem 4rem 5rem; box-sizing: border-box; }
.guide-step { display: grid; grid-template-columns: minmax(0, 1fr) 250px; grid-template-rows: repeat(6, max-content) 1fr; column-gap: 3rem; row-gap: 0; margin-bottom: 3.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid #161616; scroll-margin-top: 7rem; }
.guide-step > * { grid-column: 1; }
.guide-step > .guide-frame { grid-column: 2; grid-row: 1 / -1; justify-self: end; }
.guide-step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #141414; border: 1px solid #2a2a2a; font-size: 0.9rem; color: #888; margin-bottom: 1rem; font-family: var(--font-sans); }
.guide-step h3 { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 600; color: var(--text-light); margin: 0 0 0.9rem; letter-spacing: -0.01em; }
.guide-step p { font-size: 1.1rem; line-height: 1.8; color: #b5b5b5; margin: 0 0 1.25rem; max-width: 62ch; }
.guide-step p:last-child { margin-bottom: 0; }

/* ── iPhone frame ── */
.guide-frame { position: relative; width: 250px; background: #080808; border: 2px solid #252525; border-radius: 38px; padding: 14px 9px 20px; box-shadow: 0 0 0 1px #0e0e0e, 0 10px 40px rgba(0,0,0,0.6); display: inline-block; }
.guide-frame-island { width: 68px; height: 19px; background: #000; border-radius: 12px; margin: 0 auto 10px; }
.guide-frame-screen { border-radius: 22px; overflow: hidden; aspect-ratio: 390/844; position: relative; background: #111; }
.guide-frame-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* placeholder state */
.guide-ph { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.5rem; height: 100%; min-height: 140px; }
.guide-ph::before { content: '📷'; font-size: 1.4rem; opacity: 0.4; }
.guide-ph span { font-size: 0.62rem; color: #444; text-align: center; line-height: 1.4; font-family: var(--font-sans); }

/* callout dots */
.guide-dot { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #000; font-size: 0.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1.5px solid rgba(0,0,0,0.3); pointer-events: none; }
.guide-dot-labels { list-style: none; padding: 0; margin: 0.55rem 0 0; }
.guide-dot-labels li { font-size: 0.95rem; color: #777; display: flex; gap: 0.45rem; align-items: baseline; margin-bottom: 0.25rem; font-family: var(--font-sans); }
.guide-dot-mini { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: #fff; color: #000; font-size: 0.5rem; font-weight: 700; flex-shrink: 0; line-height: 1; }

/* ── Bottom navigation ── */
.guide-bottom-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.75rem 0 0; border-top: 1px solid #181818; margin-top: 0.5rem; flex-wrap: wrap; }
.guide-bottom-nav a { text-decoration: none; display: flex; flex-direction: column; max-width: 45%; }
.guide-bottom-nav a.prev { align-items: flex-start; }
.guide-bottom-nav a.next { align-items: flex-end; }
.guide-nav-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #555; margin-bottom: 0.2rem; font-family: var(--font-sans); }
.guide-nav-title { font-size: 1.05rem; color: var(--text-light); font-family: var(--font-sans); }
.guide-bottom-support { font-size: 0.78rem; color: #555; text-align: center; font-family: var(--font-sans); }
.guide-bottom-support a { color: #666; }
.guide-bottom-support a:hover { color: #999; }

/* ── Tip callout ── */
.guide-tip { background: #0d0d0d; border: 1px solid #1e1e1e; border-left: 3px solid #333; border-radius: 6px; padding: 0.75rem 1rem; font-size: 0.98rem; color: #888; line-height: 1.65; margin: 0 0 1.25rem; max-width: 62ch; font-family: var(--font-sans); }
.guide-tip strong { color: #aaa; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .guide-steps { padding: 3rem 2rem 4rem; }
  .guide-step { grid-template-columns: 1fr; grid-template-rows: none; }
  .guide-step > .guide-frame { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.5rem; }
}
@media (max-width: 767px) {
  .guide-body { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; height: auto; overflow: visible; border-right: 0; padding: 1.25rem 1.5rem 0; }
  .guide-sidebar-toggle { display: block; }
  .guide-sidebar-label { display: none; }
  .guide-sidebar ul { display: none; padding: 0.4rem 0; }
  .guide-sidebar.open ul { display: block; }
  .guide-steps { padding: 2rem 1.5rem 3rem; }
  .guide-frame { width: 220px; }
  .guide-step { margin-bottom: 2.5rem; padding-bottom: 2.5rem; }
  .guide-step h3 { font-size: 1.3rem; }
  .guide-step p { font-size: 1.02rem; }
  .guide-bottom-nav a { max-width: 48%; }
}

/* ── Netball / Footy tabs ── */
.guide-tabs { display: inline-flex; gap: 0.35rem; padding: 0.3rem; margin-bottom: 2rem; background: #111; border: 1px solid #222; border-radius: 12px; }
.guide-tabs a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.15rem; border-radius: 9px; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: background 0.15s, color 0.15s; }
.guide-tabs a:hover { color: var(--text-light); }
.guide-tabs a[aria-current="page"] { background: #1f1f1f; color: var(--text-light); }
.guide-tab-soon { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 999px; border: 1px solid #333; color: var(--text-muted); }
.guide-body-solo { grid-template-columns: 1fr; }
.guide-soon { border: 1px solid #222; background: #0d0d0d; border-radius: 16px; padding: 2.25rem; max-width: 640px; }
.guide-soon h2 { font-size: 1.5rem; color: var(--text-light); margin: 0 0 0.75rem; }
.guide-soon p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; margin: 0 0 1.25rem; }
.guide-soon-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.guide-soon-links a { display: inline-block; padding: 0.6rem 1.2rem; border-radius: 999px; border: 1px solid #333; color: var(--text-light); text-decoration: none; font-size: 0.95rem; }
.guide-soon-links a:hover { border-color: #666; }
