/* ============================================
   نظام التصميم الجديد - موقع العمرة
   New Design System - Omra Website
   ============================================ */

/* ========================================
   CSS Variables - Design Tokens
   ======================================== */
:root {
    /* ===== Primary Colors - نمط إسلامي عصري ===== */
    --primary-emerald: #047857;
    --emerald-light: #10b981;
    --emerald-dark: #065f46;
    
    --primary-navy: #1e3a8a;
    --navy-light: #3b82f6;
    --navy-dark: #1e40af;
    
    --accent-gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    
    --accent-teal: #0d9488;
    --teal-light: #14b8a6;
    --teal-dark: #0f766e;
    
    /* ===== Neutral Colors ===== */
    --bg-cream: #fef3c7;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;
    
    /* ===== Text Colors ===== */
    --text-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* ===== Gradients ===== */
    --gradient-emerald: linear-gradient(135deg, var(--primary-emerald) 0%, var(--emerald-dark) 100%);
    --gradient-navy: linear-gradient(135deg, var(--primary-navy) 0%, var(--navy-dark) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, var(--gold-dark) 100%);
    --gradient-teal: linear-gradient(135deg, var(--accent-teal) 0%, var(--teal-dark) 100%);
    --gradient-sunset: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-emerald) 100%);
    
    /* ===== Shadows ===== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.15);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --shadow-emerald: 0 4px 20px rgba(4, 120, 87, 0.25);
    --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.25);
    --shadow-navy: 0 4px 20px rgba(30, 58, 138, 0.25);
    
    /* ===== Border Radius ===== */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    
    /* ===== Spacing Scale ===== */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;
    
    /* ===== Typography ===== */
    --font-primary: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: '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: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* ===== Transitions ===== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ===== Z-Index Scale ===== */
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* ===== Container Widths ===== */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;
    
    /* ===== Breakpoints (for reference) ===== */
    /* sm: 640px */
    /* md: 768px */
    /* lg: 1024px */
    /* xl: 1280px */
    /* 2xl: 1536px */
}

/* ========================================
   Global Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background-color: var(--bg-white);
    direction: rtl;
    overflow-x: hidden;
}

/* ===== Typography Base ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-dark);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 640px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

/* ===== Islamic Pattern Background ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(4, 120, 87, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(30, 58, 138, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== Selection ===== */
::selection {
    background-color: var(--accent-gold);
    color: var(--text-white);
}

::-moz-selection {
    background-color: var(--accent-gold);
    color: var(--text-white);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-emerald);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-dark);
}

/* ===== Focus Styles ===== */
*:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

.text-emerald { color: var(--primary-emerald); }
.text-navy { color: var(--primary-navy); }
.text-gold { color: var(--accent-gold); }
.text-teal { color: var(--accent-teal); }

.bg-emerald { background-color: var(--primary-emerald); }
.bg-navy { background-color: var(--primary-navy); }
.bg-gold { background-color: var(--accent-gold); }
.bg-cream { background-color: var(--bg-cream); }
.bg-light { background-color: var(--bg-light); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
