/* =========================================
   base.css - Shared page foundation.
   Loaded by templates/head_content.php on every page so the background,
   scrollbar behavior, and typography are identical across navigation
   (no layout shift or gradient swap between pages).
   ========================================= */

/* --- VARIABLES --- */
:root {
    --bg-color: #07111f;
    --card-bg: rgba(15, 29, 46, 0.92);
    --card-border: #26374b;
    --text-color: #e5edf7;
    --text-strong: #f8fafc;
    --text-muted: #aebed0;
    --primary-color: #38bdf8;
    --primary-hover: #7dd3fc;
    --primary-contrast: #03131f;
    --ar-btn-color: #38bdf8;
    --ar-btn-hover: #7dd3fc;
    --danger-color: #ef4444;
    --glass-bg: rgba(15, 29, 46, 0.92);
    --transition: 0.2s ease;
}

/* --- BASE STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    /* Reserve the scrollbar gutter on every page so switching between
       short (e.g. login) and long (e.g. home) pages never shifts the
       layout horizontally. */
    scrollbar-gutter: stable;
}

body {
    color-scheme: dark;
    background:
        radial-gradient(circle at top, rgba(14, 165, 233, 0.18), transparent 38rem),
        var(--bg-color);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-color);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    overflow-x: hidden;
}
