/* ==========================================================================
   THEME - soft navy site background with a slowly shifting shade.
   ROLLBACK: delete this file (or empty it) and the site returns to the light look.
   Loaded after style.css on every public page. Dashboards/login are not touched.
   ========================================================================== */
:root {
    --bg-h: 222;                                         /* hue; fx.js shifts it gently while scrolling */
    --color-bg: hsl(var(--bg-h) 46% 14%);                /* deep soft navy, not black */
    --color-bg-alt: hsl(var(--bg-h) 40% 19%);            /* cards and alternate sections */
    --color-input-bg: hsl(var(--bg-h) 38% 22%);
    --color-text: #eaf1ff;
    --color-text-light: #b3c0da;
    --color-border: rgba(255,255,255,0.12);
    --color-brand: #4673e0;
    --color-brand-light: #6b95f0;
    --color-accent: #3d9bff;
    --color-accent-light: #8cc4ff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.32);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.38);
}

/* page background: base navy plus soft colour pools that follow the shifting hue */
body {
    background-color: var(--color-bg);
    background-image:
        radial-gradient(900px 620px at 10% 6%, hsl(calc(var(--bg-h) + 30) 70% 32% / 0.30), transparent 62%),
        radial-gradient(800px 640px at 92% 94%, hsl(calc(var(--bg-h) - 26) 66% 30% / 0.26), transparent 62%);
    background-attachment: fixed;
}

/* a little ambient motion behind the content */
body::before {
    content: ""; position: fixed; inset: -25%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(40% 40% at 20% 28%, hsl(calc(var(--bg-h) + 34) 80% 46% / 0.20), transparent 70%),
        radial-gradient(38% 38% at 80% 70%, hsl(calc(var(--bg-h) - 24) 80% 42% / 0.17), transparent 70%),
        radial-gradient(30% 30% at 56% 14%, hsl(calc(var(--bg-h) + 10) 90% 56% / 0.10), transparent 70%);
    animation: bgDrift 38s ease-in-out infinite alternate; will-change: transform;
}
@keyframes bgDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(4%, -3%, 0) scale(1.08); }
    100% { transform: translate3d(-4%, 3%, 0) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* ---- parts that keep their original light look (so their text stays readable) ---- */
.site-header, .content-panel, .comments-list .comment-item, .comment-form, .existing-comment, .related-card,
.share-btn, .blog-controls-inner, .blog-search, .cmdk-panel, .filter-pill, .story-card, .load-more-btn,
.story-category, .campaign-card, .flip-hint, .item-thumb-icon, .quickview-close {
    --color-text: #0f172a; --color-text-light: #475569; --color-bg: #f0f7ff; --color-bg-alt: #ffffff;
    --color-border: #dbeafe; --color-input-bg: #eff6ff; --color-brand: #1e3a8a; --color-brand-light: #2563eb;
    --color-accent: #1E90FF; --color-accent-light: #63b3ff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04); --shadow-md: 0 4px 20px rgba(0,0,0,0.06); --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
    color: #475569;
}
.site-footer { --color-brand: #1e3a8a; }

/* ---- fixes for places that used a hard-coded light colour ---- */
.blog-stories-section { background: transparent !important; }
.form-group input:focus, .form-group textarea:focus { background: hsl(var(--bg-h) 38% 26%); }
::-webkit-scrollbar-track { background: hsl(var(--bg-h) 40% 12%); }
