﻿/* Font Normalization - تطبيع أحجام الخطوط للموقع بالكامل */

/* إعداد الحجم الأساسي للخط */
html {
    font-size: var(--font-base); /* الحجم الأساسي 16px */
}

body {
    font-size: 1rem; /* 16px */
    line-height: 1.6;
    font-family: "Droid Arabic Kufi", sans-serif !important;
}

/* تطبيق خط Droid Arabic Kufi على جميع العناصر */
* {
    font-family: "Droid Arabic Kufi", sans-serif !important;
}

/* تحديد أحجام الخطوط الأساسية باستخدام rem */
:root {
    --font-xs: 0.75rem;    /* 12px */
    --font-sm: 0.875rem;   /* 14px */
    --font-base: 1rem;     /* 16px */
    --font-lg: 1.125rem;   /* 18px */
    --font-xl: 1.25rem;    /* 20px */
    --font-2xl: 1.5rem;    /* 24px */
    --font-3xl: 1.875rem;  /* 30px */
    --font-4xl: 2.25rem;   /* 36px */
    --font-5xl: 3rem;      /* 48px */
}

/* تطبيق أحجام الخطوط على العناصر الأساسية */
h1 {
    font-size: var(--font-4xl);
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: var(--font-3xl);
    line-height: 1.3;
    font-weight: 600;
}

h3 {
    font-size: var(--font-2xl);
    line-height: 1.4;
    font-weight: 600;
}

h4 {
    font-size: var(--font-xl);
    line-height: 1.4;
    font-weight: 500;
}

h5 {
    font-size: var(--font-lg);
    line-height: 1.5;
    font-weight: 500;
}

h6 {
    font-size: var(--font-base);
    line-height: 1.5;
    font-weight: 500;
}

p, div, span {
    font-size: var(--font-base);
    line-height: 1.6;
}

/* أحجام النصوص المساعدة */
.text-xs {
    font-size: var(--font-xs);
}

.text-sm {
    font-size: var(--font-sm);
}

.text-base {
    font-size: var(--font-base);
}

.text-lg {
    font-size: var(--font-lg);
}

.text-xl {
    font-size: var(--font-xl);
}

.text-2xl {
    font-size: var(--font-2xl);
}

.text-3xl {
    font-size: var(--font-3xl);
}

.text-4xl {
    font-size: var(--font-4xl);
}

/* أوزان الخطوط */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

/* تطبيق أحجام موحدة على عناصر واجهة المستخدم */
button, .btn {
    font-size: var(--font-base);
    font-weight: 500;
}

input, textarea, select {
    font-size: var(--font-base);
}

/* تطبيق أحجام على عناصر التنقل */
nav a, .nav-link {
    font-size: var(--font-base);
}

/* تطبيق أحجام على عناصر القوائم */
ul, ol, li {
    font-size: var(--font-base);
}

/* تطبيق أحجام على الجداول */
table, th, td {
    font-size: var(--font-base);
}

/* تطبيق أحجام على النماذج */
label {
    font-size: var(--font-base);
    font-weight: 500;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    html {
        font-size: var(--font-sm); /* تقليل الحجم الأساسي للموبايل */
    }
    
    h1 {
        font-size: var(--font-3xl);
    }
    
    h2 {
        font-size: var(--font-2xl);
    }
    
    h3 {
        font-size: var(--font-xl);
    }
}

@media (max-width: 480px) {
    html {
        font-size: var(--font-xs); /* تقليل أكثر للشاشات الصغيرة جداً */
    }
} 
