/*
 * ThroneFinder content pages (/about, /how-it-works, /shop) + the shared
 * content nav that /faq, /advertise and /creatures also use.
 *
 * Everything here is prefixed `cp-` or scoped under `body.cp-page`, so it can be
 * linked from pages that already have their own styles (faq, advertise,
 * creatures) without changing them. Never loaded by the map screen (app.html).
 * Colors/fonts match faq.html (Space Grotesk + DM Sans, amber on near-black).
 */
:root {
    --cp-amber: #F59E0B;
    --cp-amber-light: #FCD34D;
    --cp-amber-dark: #D97706;
    --cp-dark: #0C0C0C;
    --cp-card: #1E1E1E;
    --cp-border: rgba(255,255,255,0.08);
    --cp-gray: #9CA3AF;
    --cp-gray-light: #D1D5DB;
    --cp-white: #F9FAFB;
    --cp-green: #10B981;
    --cp-orange: #F97316;
}

/* ── Page base (new content pages only) ─────────────────────────────── */
body.cp-page { margin: 0; font-family: 'DM Sans', sans-serif; background: var(--cp-dark); color: var(--cp-white); min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.cp-page *, body.cp-page *::before, body.cp-page *::after { box-sizing: border-box; }
:where(body.cp-page) h1, :where(body.cp-page) h2, :where(body.cp-page) h3 { font-family: 'Space Grotesk', sans-serif; margin: 0; }
:where(body.cp-page) p { margin: 0; }
:where(body.cp-page) a { color: var(--cp-amber); }

/* ── Header: sticky top bar + wrapping link row ─────────────────────── */
.cp-header { position: sticky; top: 0; z-index: 20; background: rgba(12,12,12,0.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(245,158,11,0.12); }
.cp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; max-width: 1100px; margin: 0 auto; }
.cp-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 1; min-width: 0; }
.cp-logo img { height: 32px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.cp-topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cp-topbar-map { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 7px 12px; border-radius: 10px; background: var(--cp-amber); color: #111 !important; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.cp-topbar-map:hover { background: var(--cp-amber-light); }
.cp-page .btn-lang.lang-pill, .cp-header .btn-lang.lang-pill { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: inherit; font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; padding: 6px 10px; min-height: 32px; border-radius: 999px; border: 1px solid rgba(245,158,11,0.45); background: rgba(245,158,11,0.08); white-space: nowrap; }
.cp-header .lang-pill .lp-opt { color: rgba(255,255,255,0.45); }
.cp-header .lang-pill .lp-opt.lp-on { color: var(--cp-amber); }
.cp-header .lang-pill .lp-sep { color: rgba(255,255,255,0.25); font-weight: 400; }

.cp-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 10px 10px; max-width: 1100px; margin: 0 auto; }
.cp-nav a { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--cp-border); color: var(--cp-gray-light); font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.cp-nav a:hover { border-color: rgba(245,158,11,0.4); color: var(--cp-white); }
.cp-nav a[aria-current="page"] { border-color: rgba(245,158,11,0.6); color: var(--cp-amber); background: rgba(245,158,11,0.08); }

/* ── Big "Open the map" button ──────────────────────────────────────── */
.cp-map-cta { text-align: center; padding: 28px 16px 8px; }
.cp-map-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 360px; min-height: 56px; padding: 14px 24px; border-radius: 14px; background: linear-gradient(135deg, var(--cp-amber), var(--cp-amber-dark)); color: #111 !important; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; text-decoration: none !important; box-shadow: 0 6px 24px rgba(245,158,11,0.25); }
.cp-map-btn:hover { filter: brightness(1.08); }
.cp-map-cta-note { margin-top: 8px; color: var(--cp-gray); font-size: 0.85rem; }

/* ── Hero + sections (new pages) ────────────────────────────────────── */
.cp-hero { text-align: center; padding: 36px 18px 8px; max-width: 720px; margin: 0 auto; }
.cp-hero h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 10px; }
.cp-hero h1 span { color: var(--cp-amber); }
.cp-hero p { color: var(--cp-gray); font-size: 1rem; line-height: 1.55; max-width: 520px; margin: 0 auto; }
.cp-main { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; }
.cp-section { margin-top: 28px; }
.cp-section > h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.cp-section > p { color: var(--cp-gray-light); line-height: 1.6; margin-bottom: 10px; }
.cp-cards { display: grid; gap: 12px; }
.cp-card { background: var(--cp-card); border: 1px solid var(--cp-border); border-radius: 14px; padding: 16px 18px; }
.cp-card h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.cp-card p, .cp-card li { color: var(--cp-gray); font-size: 0.95rem; line-height: 1.6; }
.cp-card ul { margin: 6px 0 0; padding-left: 20px; }
.cp-card a { color: var(--cp-amber); text-decoration: none; }
.cp-card a:hover { text-decoration: underline; }
.cp-step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(245,158,11,0.15); color: var(--cp-amber); font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.cp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
.cp-dot.green { background: var(--cp-green); }
.cp-dot.orange { background: var(--cp-orange); opacity: 0.8; }
.cp-dot.gold { background: #EAB308; }
.cp-text-link { color: var(--cp-amber); font-weight: 600; text-decoration: none; }

/* Shop cards */
.cp-shop-card { display: flex; flex-direction: column; gap: 8px; }
.cp-shop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cp-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; white-space: nowrap; }
.cp-badge.live { background: rgba(16,185,129,0.15); color: var(--cp-green); border: 1px solid rgba(16,185,129,0.4); }
.cp-badge.soon { background: rgba(245,158,11,0.12); color: var(--cp-amber); border: 1px solid rgba(245,158,11,0.4); }
.cp-badge.later { background: rgba(255,255,255,0.05); color: var(--cp-gray); border: 1px dashed rgba(255,255,255,0.25); }
.cp-shop-btn { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 10px; background: var(--cp-amber); color: #111 !important; font-family: 'Space Grotesk', sans-serif; font-weight: 700; text-decoration: none !important; }
.cp-shop-btn[hidden] { display: none; }
.cp-shop-card.is-slot { border-style: dashed; }

/* ── Footer nav (all content pages + faq/advertise/creatures) ───────── */
.cp-footer { border-top: 1px solid var(--cp-border); padding: 24px 16px 36px; text-align: center; color: var(--cp-gray); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; background: var(--cp-dark); }
/* Reset generic `nav {}` rules from host pages (advertise.html styles every <nav> as a fixed top bar). On faq/creatures/advertise the footer nav is a <div role="navigation">: creatures.html injects its language button into the first <nav>. */
nav.cp-nav, nav.cp-footer-nav { position: static; top: auto; width: auto; z-index: auto; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.cp-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; max-width: 720px; margin: 0 auto 12px; padding: 0; }
.cp-footer-nav a { color: var(--cp-gray-light); text-decoration: none; padding: 6px 2px; font-size: 0.88rem; }
.cp-footer-nav a:hover { color: var(--cp-amber); }
.cp-footer-nav a.cp-footer-map { color: var(--cp-amber); font-weight: 700; }
.cp-footer-meta a { color: rgba(255,255,255,0.5); text-decoration: none; }
.cp-footer-meta a:hover { color: var(--cp-amber); }

@media (min-width: 720px) {
    .cp-hero { padding-top: 52px; }
    .cp-hero h1 { font-size: 2.2rem; }
    .cp-cards.two { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 370px) {
    .cp-topbar { padding: 8px 10px; gap: 6px; }
    .cp-logo img { height: 28px; max-width: 112px; }
    .cp-topbar-map { padding: 6px 10px; font-size: 0.8rem; }
    .cp-nav a { padding: 4px 9px; font-size: 0.78rem; }
}
