/* ===================================
   الهوية البصرية v3.0 - ألوان وخطوط محسّنة
   =================================== */

:root {
    /* الألوان الرئيسية - لوحة متناسقة */
    --primary-color: #1e3a5f;        /* أزرق داكن أنيق */
    --primary-light: #2c5282;        /* أزرق فاتح */
    --accent-color: #d97706;         /* برتقالي دافئ */
    --accent-light: #f59e0b;         /* برتقالي فاتح */
    
    /* الخلفيات */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    /* النصوص */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* الحدود */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* الظلال */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* الخطوط - أحجام متناسقة */
    --font-base: 0.95rem;            /* 15.2px */
    --font-sm: 0.85rem;              /* 13.6px */
    --font-xs: 0.75rem;              /* 12px */
    
    --font-lg: 1.1rem;               /* 17.6px */
    --font-xl: 1.25rem;              /* 20px */
    --font-2xl: 1.5rem;              /* 24px */
    --font-3xl: 1.875rem;            /* 30px */
    
    /* المسافات */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

/* الوضع الليلي - ألوان محسّنة */
body.dark-mode {
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-color: #334155;
    --border-light: #475569;
}

/* إعادة تعيين الخطوط العامة */
body {
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--text-primary);
}

/* العناوين - أحجام متدرجة */
h1 { font-size: var(--font-3xl); line-height: 1.2; }
h2 { font-size: var(--font-2xl); line-height: 1.3; }
h3 { font-size: var(--font-xl); line-height: 1.4; }
h4 { font-size: var(--font-lg); line-height: 1.4; }
h5, h6 { font-size: var(--font-base); line-height: 1.5; }

/* الروابط - ألوان متناسقة */
a {
    color: var(--primary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

/* الأزرار - تصميم موحد */
.btn, 
button:not(.mobile-menu-toggle):not(.search-close):not(.top-btn),
input[type="submit"] {
    font-size: var(--font-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* البطاقات - ظلال خفيفة */
.post-card,
.category-post-card,
.sidebar-widget,
.single-post-content {
    box-shadow: var(--shadow-sm);
}

.post-card:hover,
.category-post-card:hover {
    box-shadow: var(--shadow-md);
}
