/* ============================================
   Design Tokens — Questioning islam? Verses
   All colors, typography, spacing, and effects
   are defined here. No color values should
   appear in any other CSS file.
   ============================================ */

/* ---------- Light Theme (default) ---------- */
:root {
    /* --- Primary palette --- */
    --color-primary: #0d7c66;
    --color-primary-hover: #0a6350;
    --color-primary-light: #e8f5f1;
    --color-accent: #d4a843;
    --color-accent-hover: #b8912e;

    /* --- Backgrounds --- */
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-surface-alt: #f3f4f6;

    /* --- Text --- */
    --color-text: #1a1a1a;
    --color-text-secondary: #555555;
    --color-text-muted: #888888;

    /* --- Links --- */
    --color-link: #0d7c66;
    --color-link-hover: #0a6350;

    /* --- Borders & Dividers --- */
    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;

    /* --- Verse block --- */
    --color-verse-bg: #f8f9fa;
    --color-verse-border: #0d7c66;
    --color-verse-arabic-bg: #fdfcf8;
    --color-verse-ref: #0d7c66;

    /* --- Blockquote --- */
    --color-blockquote-bg: #f0faf7;
    --color-blockquote-border: #0d7c66;

    /* --- Code --- */
    --color-code-bg: #f3f4f6;

    /* --- Sidebar --- */
    --color-sidebar-bg: #ffffff;
    --color-sidebar-hover: #f0faf7;
    --color-sidebar-active: #e8f5f1;

    /* --- Header --- */
    --color-header-bg: #ffffff;
    --color-header-border: #e0e0e0;

    /* --- Footer --- */
    --color-footer-bg: #f3f4f6;
    --color-footer-text: #555555;

    /* --- Search --- */
    --color-search-bg: #f3f4f6;
    --color-search-focus-bg: #ffffff;
    --color-search-border: #e0e0e0;
    --color-search-focus-border: #0d7c66;

    /* --- Overlay --- */
    --color-overlay: rgba(0, 0, 0, 0.4);

    /* --- Shadows --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);

    /* --- Typography --- */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-arabic: 'Amiri', 'Traditional Arabic', 'Noto Naskh Arabic', serif;
    --font-mono: 'Fira Code', 'Consolas', 'Monaco', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    --leading-tight: 1.25;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* --- Spacing scale --- */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* --- Layout --- */
    --sidebar-width: 260px;
    --header-height: 56px;
    --content-max-width: 860px;
    --page-max-width: 1200px;

    /* --- Border radius --- */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-full: 9999px;

    /* --- Transitions --- */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
    /* --- Primary palette --- */
    --color-primary: #2ec4a5;
    --color-primary-hover: #4dd4b8;
    --color-primary-light: #1a2f2a;
    --color-accent: #e0b94f;
    --color-accent-hover: #edc85e;

    /* --- Backgrounds --- */
    --color-bg: #121212;
    --color-surface: #1e1e1e;
    --color-surface-alt: #252525;

    /* --- Text --- */
    --color-text: #e4e4e4;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #6b6b6b;

    /* --- Links --- */
    --color-link: #2ec4a5;
    --color-link-hover: #4dd4b8;

    /* --- Borders & Dividers --- */
    --color-border: #333333;
    --color-border-light: #2a2a2a;

    /* --- Verse block --- */
    --color-verse-bg: #1a1f1e;
    --color-verse-border: #2ec4a5;
    --color-verse-arabic-bg: #1e2220;
    --color-verse-ref: #2ec4a5;

    /* --- Blockquote --- */
    --color-blockquote-bg: #1a2520;
    --color-blockquote-border: #2ec4a5;

    /* --- Code --- */
    --color-code-bg: #252525;

    /* --- Sidebar --- */
    --color-sidebar-bg: #1a1a1a;
    --color-sidebar-hover: #1a2f2a;
    --color-sidebar-active: #1a3530;

    /* --- Header --- */
    --color-header-bg: #1a1a1a;
    --color-header-border: #333333;

    /* --- Footer --- */
    --color-footer-bg: #1a1a1a;
    --color-footer-text: #a0a0a0;

    /* --- Search --- */
    --color-search-bg: #252525;
    --color-search-focus-bg: #1e1e1e;
    --color-search-border: #333333;
    --color-search-focus-border: #2ec4a5;

    /* --- Overlay --- */
    --color-overlay: rgba(0, 0, 0, 0.6);

    /* --- Shadows --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
}