/**
 * SyMa Design System
 * Syrian-Moroccan Cooperation Platform
 *
 * This file contains all design tokens (CSS variables) used throughout the theme.
 * Modify these values to change the entire theme's appearance.
 */

/* Import Professional Arabic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
    /* ==========================================
       COLOR SYSTEM
       ========================================== */

    /* Moroccan Colors */
    --moroccan-red: #BB262C;
    --moroccan-green: #00592E;

    /* Syrian Colors */
    --syrian-dark-green: #002623;
    --syrian-gold: #988561;

    /* Primary Theme Colors */
    --primary-color: #003D35;
    --primary-dark: #002623;
    --primary-light: #005248;
    --secondary-color: #A52A2A;
    --accent-green: #00592E;
    --accent-gold: #C8A882;
    --accent-gold-light: #D4B896;

    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #F7F7F7;
    --medium-gray: #E5E7EB;
    --border-gray: #D1D5DB;
    --text-gray: #6B7280;
    --dark-gray: #374151;
    --text-primary: #111827;
    --text-secondary: #4B5563;

    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* ==========================================
       SPACING SYSTEM
       ========================================== */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
    --spacing-4xl: 6rem;     /* 96px */

    /* ==========================================
       TYPOGRAPHY SYSTEM
       ========================================== */
    --font-primary: 'Tajawal', 'Cairo', 'Arabic Typesetting', sans-serif;
    --font-heading: 'Cairo', 'Tajawal', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 2rem;        /* 32px */
    --text-4xl: 2.5rem;      /* 40px */
    --text-5xl: 3rem;        /* 48px */

    /* Line Heights */
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    --leading-loose: 2;

    /* ==========================================
       SHADOW SYSTEM
       ========================================== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* ==========================================
       BORDER RADIUS SYSTEM
       ========================================== */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* ==========================================
       TRANSITION SYSTEM
       ========================================== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ==========================================
       LAYOUT SYSTEM
       ========================================== */
    --container-max-width: 1280px;
    --container-padding: var(--spacing-2xl);

    /* Breakpoints (for reference in media queries) */
    --breakpoint-sm: 480px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ==========================================
   RESPONSIVE SPACING ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 2.5rem;
        --spacing-4xl: 3rem;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 15px;
    }
}
