/* ─────────────────────────────────────────────────────────────
   guide.css — shared styles for GamesOMG guide / lookup pages
   (setup guides, "where to find X", explainers, reference pages).
   Pairs with main.css. Mirrors the proven Satisfactory-guide layout
   plus an answer box (snippet capture) and location cards.
   ───────────────────────────────────────────────────────────── */

/* Hero */
.ref-hero { padding: 3rem 2rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.ref-hero::before { content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 700px; height: 400px; background: radial-gradient(ellipse, rgba(240,128,0,0.08) 0%, transparent 65%); pointer-events: none; }
.ref-hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.ref-breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ref-breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.ref-breadcrumb a:hover { color: var(--orange); }
.ref-breadcrumb-sep { opacity: 0.4; }
.ref-hero-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--orange-dim); border: 1px solid var(--orange-border); color: var(--orange); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 100px; margin-bottom: 1.25rem; }
.ref-hero h1 { font-family: 'Manrope', sans-serif; font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; color: var(--text); margin-bottom: 1rem; }
.ref-hero h1 em { font-style: normal; color: var(--orange); }
.ref-hero .lede { font-size: 1.02rem; color: var(--text-muted); line-height: 1.7; }
.ref-verified { display: inline-flex; align-items: center; gap: 7px; margin-top: 1.1rem; font-size: 0.78rem; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; padding: 0.3rem 0.9rem; }
.ref-verified .dot { width: 7px; height: 7px; border-radius: 50%; background: #7ecfa0; }
.ref-verified strong { color: var(--text); font-weight: 600; }

/* Jump nav */
.ref-jump { max-width: 900px; margin: 0.5rem auto 2rem; padding: 0 2rem; }
.ref-jump-inner { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.2rem; }
.ref-jump-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.65rem; }
.ref-jump-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ref-jump-chip { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.85rem; transition: all 0.15s; white-space: nowrap; }
.ref-jump-chip:hover { border-color: var(--orange); color: var(--orange); }

/* Answer box — the "quick answer" for snippet capture (top of lookup pages) */
.answer-box { max-width: 900px; margin: 0 auto 2rem; padding: 0 2rem; }
.answer-box-inner { background: var(--orange-dim); border: 1px solid var(--orange-border); border-radius: var(--radius-md); padding: 1.2rem 1.5rem; }
.answer-box-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem; }
.answer-box-main { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(1.3rem, 3.5vw, 1.7rem); color: var(--text); line-height: 1.25; letter-spacing: -0.01em; }
.answer-box-main .hl { color: var(--orange); }
.answer-box-sub { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-top: 0.55rem; }
.answer-box-sub a { color: var(--orange); }
.answer-box-sub strong { color: var(--text); }
.answer-code { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.4rem; }
.answer-code .digit { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.4rem); color: var(--orange); background: var(--bg); border: 1px solid var(--orange-border); border-radius: var(--radius-sm); padding: 0.2rem 0.9rem; letter-spacing: 0.12em; }

/* Info callout (blue) */
.setup-callout { max-width: 900px; margin: 0 auto 2rem; padding: 0 2rem; }
.setup-callout-inner { background: var(--bg-card); border: 1px solid var(--blue-border); border-radius: var(--radius-md); padding: 1.2rem 1.5rem; display: flex; align-items: flex-start; gap: 16px; }
.setup-callout-icon { flex-shrink: 0; width: 38px; height: 38px; background: var(--blue-dim); border: 1px solid var(--blue-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.setup-callout-body { flex: 1; }
.setup-callout-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1rem; color: var(--blue); margin-bottom: 0.4rem; }
.setup-callout-text { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.setup-callout-text a { color: var(--orange); }
.setup-callout-text a:hover { text-decoration: underline; }

/* Sections */
.ref-sections { max-width: 900px; margin: 0 auto; padding: 0 2rem 3rem; }
.ref-section { margin-bottom: 2.5rem; scroll-margin-top: 80px; }
.ref-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--orange-dim); flex-wrap: wrap; }
.ref-section-header h2 { font-family: 'Manrope', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); letter-spacing: -0.015em; }
.ref-section-header .icon { width: 30px; height: 30px; background: var(--orange-dim); border: 1px solid var(--orange-border); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.ref-section-intro { color: var(--text-muted); font-size: 0.94rem; line-height: 1.65; margin-bottom: 1.1rem; }
.ref-section-intro code, .ref-faq-body code, .setup-callout-text code, .step-body code, .ref-prose code, .loc-card code { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-family: 'Courier New', monospace; font-size: 0.85em; color: var(--orange); }
.ref-prose { color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; margin-bottom: 1.1rem; }
.ref-prose strong { color: var(--text); font-weight: 600; }
.ref-prose a, .ref-section-intro a { color: var(--orange); }
.ref-prose a:hover, .ref-section-intro a:hover { text-decoration: underline; }

/* Tables */
.ref-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ref-table th, .ref-table td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.ref-table tr:last-child td { border-bottom: none; }
.ref-table th { background: var(--bg-surface); color: var(--text); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.ref-table td { color: var(--text-muted); line-height: 1.55; }
.ref-table td strong { color: var(--text); }
.ref-table td.setting { font-family: 'Courier New', monospace; color: var(--orange); font-size: 0.83rem; }
.ref-table td.def { font-family: 'Courier New', monospace; font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.ref-table td.rec { font-family: 'Courier New', monospace; font-size: 0.82rem; color: #7ecfa0; white-space: nowrap; }

/* Tips / warnings */
.ref-tip { background: rgba(39,144,249,0.06); border-left: 3px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.85rem 1.15rem; margin: 1.2rem 0; font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }
.ref-tip strong { color: var(--blue); }
.ref-warn { background: rgba(240,128,0,0.06); border-left: 3px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.85rem 1.15rem; margin: 1.2rem 0; font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }
.ref-warn strong { color: var(--orange); }
.ref-tip code, .ref-warn code { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-family: 'Courier New', monospace; font-size: 0.88em; color: var(--orange); }

/* Location cards — "where to find X" lists */
.loc-grid { display: grid; gap: 0.7rem; margin: 1.1rem 0; }
.loc-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; }
.loc-card h3 { font-family: 'Manrope', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.loc-card .loc-tag { font-family: 'Manrope', sans-serif; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.12rem 0.45rem; border-radius: 4px; color: #7ecfa0; background: rgba(126,207,160,0.12); border: 1px solid rgba(126,207,160,0.3); }
.loc-card .loc-tag.best { color: var(--orange); background: var(--orange-dim); border-color: var(--orange-border); }
.loc-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.loc-card p strong { color: var(--text); }

/* Steps (how-to) */
.step { display: flex; gap: 16px; margin-bottom: 1.6rem; scroll-margin-top: 80px; }
.step-num { flex-shrink: 0; width: 34px; height: 34px; background: var(--orange-dim); border: 1px solid var(--orange-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1rem; color: var(--orange); }
.step-body { flex: 1; min-width: 0; }
.step-body h3 { font-family: 'Manrope', sans-serif; font-size: 1.08rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.step-body p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; margin-bottom: 0.6rem; }
.step-body p:last-child { margin-bottom: 0; }
.step-body strong { color: var(--text); font-weight: 600; }
.step-body a { color: var(--orange); }
.step-body ul { margin: 0.4rem 0 0.6rem; padding-left: 1.2rem; color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; }
.step-body li { margin-bottom: 0.25rem; }

/* TL;DR strip */
.guide-tldr { max-width: 900px; margin: 0 auto 2rem; padding: 0 2rem; }
.guide-tldr-inner { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.9rem 1.2rem; font-size: 0.93rem; color: var(--text-muted); line-height: 1.6; }
.guide-tldr-inner strong { color: var(--text); }

/* More tools / related footer */
.more-tools { max-width: 900px; margin: 0 auto 2.5rem; padding: 0 2rem; }
.more-tools-inner { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.3rem 1.5rem; }
.more-tools h2 { font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.more-tools p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.9rem; }
.more-tools-links { display: flex; gap: 8px; flex-wrap: wrap; }
.more-tools-link { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; padding: 0.4rem 0.95rem; transition: all 0.15s; }
.more-tools-link:hover { border-color: var(--orange); color: var(--orange); }

/* FAQ */
.ref-faq { max-width: 900px; margin: 0 auto 4rem; padding: 0 2rem; scroll-margin-top: 80px; }
.ref-faq h2 { font-family: 'Manrope', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 1.2rem; letter-spacing: -0.015em; }
.ref-faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.6rem; overflow: hidden; }
.ref-faq-item summary { padding: 0.9rem 1.1rem; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.96rem; color: var(--text); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ref-faq-item summary::-webkit-details-marker { display: none; }
.ref-faq-item summary::after { content: '+'; color: var(--orange); font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.ref-faq-item[open] summary::after { content: '\2212'; }
.ref-faq-body { padding: 0 1.1rem 1.1rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.ref-faq-body a { color: var(--orange); }
.ref-faq-body a:hover { text-decoration: underline; }

/* Hub grid (cluster landing pages) */
.hub-grid { max-width: 900px; margin: 0 auto 2.5rem; padding: 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.8rem; }
.hub-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; transition: all 0.15s; }
.hub-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.hub-card h3 { font-family: 'Manrope', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.hub-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }
.hub-card .hub-card-tag { font-size: 0.7rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Checklist tracker (collectible check-off; mirrors the ARK explorer-notes tracker) ── */
.nt { background: linear-gradient(180deg, var(--orange-dim), rgba(240,128,0,.03)); border: 1px solid var(--orange-border); border-radius: 14px; padding: 0.9rem 1.1rem; margin: 0 0 0.9rem; }
.nt-top { display: flex; align-items: center; gap: .5rem .8rem; flex-wrap: wrap; }
.nt-title { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--orange); font-size: .98rem; }
.nt-count { font-family: 'Manrope', sans-serif; font-weight: 600; color: #c4d0db; font-size: .92rem; }
.nt-count b { color: var(--orange); }
.nt-reset { margin-left: auto; cursor: pointer; background: transparent; border: 1px solid rgba(255,255,255,.18); color: #9fb0bf; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .8rem; padding: .32rem .8rem; border-radius: 999px; }
.nt-reset:hover { border-color: var(--orange); color: var(--orange); }
.nt-track { height: 9px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; margin: .65rem 0 0; }
.nt-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), #ff9d3a); border-radius: 999px; transition: width .3s ease; }
.nt-hint { font-size: .78rem; color: #8899a6; line-height: 1.5; margin-top: .5rem; }
table.checklist tbody tr.nt-row { cursor: pointer; }
table.checklist tbody tr.nt-row:hover { background: rgba(240,128,0,.06); }
.nt-cb { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--orange); border-radius: 4px; margin-right: .55rem; vertical-align: -2px; position: relative; }
table.checklist tbody tr.nt-done .nt-cb { background: var(--orange); }
table.checklist tbody tr.nt-done .nt-cb::after { content: '\2713'; position: absolute; inset: 0; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; }
table.checklist tbody tr.nt-done td { color: #7d8a97; text-decoration: line-through; }
table.checklist tbody tr.nt-done td:first-child { text-decoration: none; }

@media (max-width: 680px) {
  .ref-table { font-size: 0.83rem; }
  .ref-table th, .ref-table td { padding: 0.6rem 0.7rem; }
  .ref-table td.setting, .ref-table td.def, .ref-table td.rec { font-size: 0.76rem; }
  .ref-hero { padding: 2.2rem 1.2rem 1rem; }
  .ref-sections, .ref-faq, .answer-box, .ref-jump, .more-tools, .setup-callout, .guide-tldr, .hub-grid { padding-left: 1.2rem; padding-right: 1.2rem; }
}
