/**
 * CZAR Design System - CSS Custom Properties
 *
 * Central design token file for the entire theme.
 * All colors, typography, spacing, and layout values defined here.
 *
 * @package Czar_Theme
 * @since   1.0.0
 */

:root {
    /* ─── Colors (Strict Monochrome + Gold Accent) ─────────────────────── */
    --czar-white: #FFFFFF;
    --czar-black: #000000;
    --czar-grey-light: #EEEEEE;
    --czar-grey-mid: #999999;
    --czar-grey-dark: #333333;
    --czar-grey-hover: #888888;
    --czar-gold: #D4AF37;
    --czar-overlay: rgba(0, 0, 0, 0.55);

    /* ─── Typography ───────────────────────────────────────────────────── */
    --czar-font-primary: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --czar-font-arabic: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;

    --czar-fs-xs: 0.6875rem;    /* 11px */
    --czar-fs-sm: 0.75rem;      /* 12px */
    --czar-fs-base: 0.875rem;   /* 14px */
    --czar-fs-md: 1rem;         /* 16px */
    --czar-fs-lg: 1.25rem;      /* 20px */
    --czar-fs-xl: 1.5rem;       /* 24px */
    --czar-fs-2xl: 2rem;        /* 32px */
    --czar-fs-3xl: 2.5rem;      /* 40px */

    --czar-fw-light: 300;
    --czar-fw-regular: 400;
    --czar-fw-medium: 500;
    --czar-fw-semibold: 600;
    --czar-fw-bold: 700;

    --czar-tracking-tight: -0.01em;
    --czar-tracking-normal: 0;
    --czar-tracking-wide: 0.08em;
    --czar-tracking-wider: 0.14em;
    --czar-tracking-widest: 0.2em;

    --czar-leading-tight: 1.2;
    --czar-leading-normal: 1.6;
    --czar-leading-relaxed: 1.8;

    /* Arabic-specific leading — Arabic glyphs need more vertical room for
       diacritical dots above (ن ت ث ف ق) and below (ي ج). Using tight
       Latin-calibrated line-heights clips ascenders on mobile. */
    --czar-leading-arabic-tight: 1.5;
    --czar-leading-arabic-normal: 1.75;

    /* ─── Spacing ──────────────────────────────────────────────────────── */
    --czar-space-xs: 0.5rem;
    --czar-space-sm: 1rem;
    --czar-space-md: 1.5rem;
    --czar-space-lg: 2rem;
    --czar-space-xl: 3rem;
    --czar-space-2xl: 4rem;
    --czar-space-3xl: 6rem;

    /* ─── Layout ───────────────────────────────────────────────────────── */
    --czar-header-height: 72px;
    --czar-max-width: 1440px;
    --czar-grid-gap: 0;
    --czar-modal-max-width: 960px;
    --czar-modal-shadow: 0 8px 60px rgba(0, 0, 0, 0.12);

    /* ─── Transitions ──────────────────────────────────────────────────── */
    --czar-transition-fast: 0.15s ease;
    --czar-transition-base: 0.3s ease;
    --czar-transition-slow: 0.5s ease;

    /* ─── Z-Index Scale ────────────────────────────────────────────────── */
    --czar-z-header: 1000;
    --czar-z-modal-overlay: 9998;
    --czar-z-modal: 9999;
}
