/* Shared styles for Mosaic content pages (not the game itself) */

:root {
    --primary: #5A96E3;
    --primary-hover: #4A88D3;
    --secondary: #88A0A8;
    --bg: #F0F4F8;
    --bg-card: #FFFFFF;
    --text: #334155;
    --text-muted: #64748b;
    --border: #DDE4E8;
    --radius: 0.5rem;
    --font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    --content-width: 720px;
    --header-height: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Site Header ─────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img { display: block; }

.site-nav {
    display: flex;
    gap: 0.25rem;
    flex: 1;
}

.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--primary);
    background: var(--bg);
}

.play-btn {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.play-btn:hover { background: var(--primary-hover); text-decoration: none; }

@media (max-width: 600px) {
    .site-nav { display: none; }
    .site-logo { flex: 1; }
}

/* ── Page Content ────────────────────────────────────────────────────────── */

.page-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.page-hero {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
}

/* Prose content */
.prose h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin: 2rem 0 0.75rem;
    padding-top: 0.5rem;
}

.prose h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.5rem;
}

.prose p { margin-bottom: 1rem; }

.prose ul, .prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose li { margin-bottom: 0.4rem; }

.prose strong { color: var(--text); }

.prose a { color: var(--primary); }

.prose hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Card for highlighted content */
.prose .tip {
    background: #eff6ff;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

.prose th, .prose td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
}

.prose th {
    background: var(--bg);
    font-weight: 600;
}

/* Play CTA banner */
.play-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.play-cta p { font-size: 1rem; font-weight: 500; margin: 0; }

.play-cta a {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.55rem 1.25rem;
    border-radius: 2rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.play-cta a:hover { opacity: 0.9; text-decoration: none; }

/* ── Site Footer ─────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2rem 1.25rem;
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-nav a:hover { color: var(--primary); }

.site-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-copyright a { color: var(--text-muted); }
.site-copyright a:hover { color: var(--primary); }
