/*
Theme Name: MarketPulse
Theme URI: https://marketpulse.example/
Author: MarketPulse
Description: Single-page, RTL-first market-moving US stock news terminal (with the arrival time of every story) for the MarketPulse Core plugin. Preact + Vite frontend served from dist/ via manifest.
Version: 1.9.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marketpulse-theme
Domain Path: /languages
Tags: rtl-language-support, one-column, dark, custom-colors
*/

/*
 * Design tokens (docs/08 §11). The compiled app CSS (dist/) ships the same tokens; they are
 * repeated here so the server-rendered shell and the "plugin missing" page are styled even
 * before / without the bundle.
 */
:root {
	--mp-bg: #0b0f14;
	--mp-surface: #111821;
	--mp-surface-2: #161f2b;
	--mp-border: #1f2a37;
	--mp-text: #e6edf3;
	--mp-muted: #8b98a5;
	--mp-up: #22c55e;
	--mp-down: #ef4444;
	--mp-mixed: #a3a3a3;
	--mp-accent: #3b82f6;
	--mp-warn: #f5b301;
	--mp-radius: 12px;
	--mp-gap: 12px;
	--mp-font-ar: "IBM Plex Sans Arabic", system-ui;
	--mp-font-en: "Inter", system-ui;
	color-scheme: dark;
}

[data-theme="light"] {
	--mp-bg: #f6f8fa;
	--mp-surface: #fff;
	--mp-surface-2: #f1f4f8;
	--mp-border: #e5e7eb;
	--mp-text: #0b0f14;
	--mp-muted: #5b6672;
	color-scheme: light;
}

html, body { margin: 0; background: var(--mp-bg); color: var(--mp-text); }
body { font-family: var(--mp-font-ar); overflow-x: clip; }
[lang="en"] body { font-family: var(--mp-font-en); }

/* "Plugin not active" notice page. */
.mp-notice-page {
	min-height: 100vh; display: grid; place-items: center; padding: 24px; box-sizing: border-box;
	background: radial-gradient(1200px 600px at 50% -10%, rgba(59, 130, 246, 0.18), transparent 60%), var(--mp-bg);
}
.mp-notice {
	max-width: 560px; width: 100%; padding: 36px 32px; box-sizing: border-box; text-align: center;
	background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.mp-notice__logo { width: 56px; height: 56px; margin: 0 auto 18px; display: block; }
.mp-notice h1 { margin: 0 0 10px; font-size: 1.5rem; }
.mp-notice p { margin: 0 0 14px; color: var(--mp-muted); line-height: 1.7; }
.mp-notice a.mp-notice__btn {
	display: inline-block; margin-top: 6px; padding: 10px 18px; border-radius: 10px;
	background: var(--mp-accent); color: #fff; text-decoration: none; font-weight: 600;
}
.mp-notice__disclaimer { margin-top: 22px !important; font-size: 0.75rem; }
