/*
Theme Name: Adsense Pro Mag
Theme URI: https://example.com/adsense-pro-mag
Author: Adsense Pro Mag Team
Author URI: https://example.com
Description: A fast, bilingual (Arabic RTL / English LTR) AdSense-ready WordPress magazine theme. Pure vanilla JS, zero page builders, built-in legal pages, one-click demo importer and CLS-safe ad slots.
Version: 2.4.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adsense-pro-mag
Tags: blog, news, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, translation-ready, rtl-language-support, block-styles
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
	/* Brand */
	--apm-primary: #1b5a84;
	--apm-primary-dark: #12405f;
	--apm-primary-light: #2f7fb5;
	--apm-primary-soft: #e8f1f8;

	/* Text */
	--apm-text: #1e293b;
	--apm-text-soft: #475569;
	--apm-muted: #64748b;

	/* Surfaces */
	--apm-surface: #ffffff;
	--apm-surface-alt: #f8fafc;
	--apm-border: #e2e8f0;

	/* Accents */
	--apm-accent: #b45309;
	--apm-danger: #be123c;
	--apm-success: #047857;

	/* Shape and depth */
	--apm-radius: 14px;
	--apm-radius-sm: 8px;
	--apm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--apm-shadow: 0 10px 28px -16px rgba(15, 23, 42, 0.28);
	--apm-shadow-lg: 0 24px 60px -28px rgba(15, 23, 42, 0.45);

	/* Layout */
	--apm-container: 1240px;
	--apm-gap: 24px;
	--apm-header-h: 74px;
	--apm-topbar-h: 38px;

	/* Typography */
	--apm-font-en: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--apm-font-ar: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
	--apm-font-heading: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Motion */
	--apm-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--apm-speed: 0.22s;
}

/* =========================================================
   2. Dark mode tokens
   ========================================================= */
[data-theme="dark"] {
	--apm-primary: #3b8ec4;
	--apm-primary-dark: #0d2c42;
	--apm-primary-light: #6fb4dd;
	--apm-primary-soft: #12293b;

	--apm-text: #e6edf5;
	--apm-text-soft: #c3d0de;
	--apm-muted: #93a4b8;

	--apm-surface: #0f172a;
	--apm-surface-alt: #111c31;
	--apm-border: #1e2d44;

	--apm-accent: #f0b040;
	--apm-danger: #f17a96;
	--apm-success: #39c08d;

	--apm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
	--apm-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
	--apm-shadow-lg: 0 26px 64px -30px rgba(0, 0, 0, 0.9);
}

/* Arabic typography tokens: applied through the dir attribute */
[dir="rtl"] {
	--apm-font-en: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
	--apm-font-heading: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}
