/* =========================================================
   علِّمنا — Font Faces
   Mixed Arabic / English Script Fix

   الفكرة:
   - اسم عائلة موحّد: Alamna UI
   - الحروف العربية تستخدم IBM Plex Sans Arabic
   - الحروف اللاتينية تستخدم IBM Plex Sans
   - الاختيار يتم حسب Unicode وليس حسب لغة الصفحة
========================================================= */

/* ---------- Regular 400 ---------- */

@font-face {
    font-family: 'Alamna UI';
    src: url('/assets/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range:
        U+0600-06FF,
        U+0750-077F,
        U+0870-089F,
        U+08A0-08FF,
        U+FB50-FDFF,
        U+FE70-FEFF,
        U+1EE00-1EEFF;
}

@font-face {
    font-family: 'Alamna UI';
    src: url('/assets/fonts/IBMPlexSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range:
        U+0000-024F,
        U+1E00-1EFF,
        U+2000-206F,
        U+20A0-20CF;
}

/* ---------- Medium 500 ---------- */

@font-face {
    font-family: 'Alamna UI';
    src: url('/assets/fonts/IBMPlexSansArabic-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range:
        U+0600-06FF,
        U+0750-077F,
        U+0870-089F,
        U+08A0-08FF,
        U+FB50-FDFF,
        U+FE70-FEFF,
        U+1EE00-1EEFF;
}

@font-face {
    font-family: 'Alamna UI';
    src: url('/assets/fonts/IBMPlexSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range:
        U+0000-024F,
        U+1E00-1EFF,
        U+2000-206F,
        U+20A0-20CF;
}

/* ---------- SemiBold 600 ---------- */

@font-face {
    font-family: 'Alamna UI';
    src: url('/assets/fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range:
        U+0600-06FF,
        U+0750-077F,
        U+0870-089F,
        U+08A0-08FF,
        U+FB50-FDFF,
        U+FE70-FEFF,
        U+1EE00-1EEFF;
}

@font-face {
    font-family: 'Alamna UI';
    src: url('/assets/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range:
        U+0000-024F,
        U+1E00-1EFF,
        U+2000-206F,
        U+20A0-20CF;
}

/* ---------- Bold 700 ---------- */

@font-face {
    font-family: 'Alamna UI';
    src: url('/assets/fonts/IBMPlexSansArabic-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range:
        U+0600-06FF,
        U+0750-077F,
        U+0870-089F,
        U+08A0-08FF,
        U+FB50-FDFF,
        U+FE70-FEFF,
        U+1EE00-1EEFF;
}

@font-face {
    font-family: 'Alamna UI';
    src: url('/assets/fonts/IBMPlexSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range:
        U+0000-024F,
        U+1E00-1EFF,
        U+2000-206F,
        U+20A0-20CF;
}


/* =========================================================
   Backward compatibility
   تبقى الأسماء القديمة متاحة لأي ملف قديم يستدعيها مباشرة.
========================================================= */

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/assets/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/assets/fonts/IBMPlexSansArabic-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/assets/fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/assets/fonts/IBMPlexSansArabic-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/assets/fonts/IBMPlexSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/assets/fonts/IBMPlexSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/assets/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/assets/fonts/IBMPlexSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
