/* ==========================================================================
   IRANSans - فونت لوکال (بدون وابستگی به سرویس بیرونی)
   مسیر مورد انتظار فایل‌ها: wwwroot/fonts/IRANSans/
   ========================================================================== */

@font-face {
    font-family: 'IRANSans';
    src: url('/fonts/IRANSans/IRANSansWeb_UltraLight.woff2') format('woff2'),
         url('/fonts/IRANSans/IRANSansWeb_UltraLight.woff') format('woff'),
         url('/fonts/IRANSans/IRANSansWeb_UltraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('/fonts/IRANSans/IRANSansWeb_Light.woff2') format('woff2'),
         url('/fonts/IRANSans/IRANSansWeb_Light.woff') format('woff'),
         url('/fonts/IRANSans/IRANSansWeb_Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('/fonts/IRANSans/IRANSansWeb.woff2') format('woff2'),
         url('/fonts/IRANSans/IRANSansWeb.woff') format('woff'),
         url('/fonts/IRANSans/IRANSansWeb.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('/fonts/IRANSans/IRANSansWeb_Medium.woff2') format('woff2'),
         url('/fonts/IRANSans/IRANSansWeb_Medium.woff') format('woff'),
         url('/fonts/IRANSans/IRANSansWeb_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('/fonts/IRANSans/IRANSansWeb_Bold.woff2') format('woff2'),
         url('/fonts/IRANSans/IRANSansWeb_Bold.woff') format('woff'),
         url('/fonts/IRANSans/IRANSansWeb_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت به کل برنامه، شامل تمام کامپوننت‌های MudBlazor */
html, body,
.mud-typography, .mud-typography-body1, .mud-typography-body2,
.mud-button, .mud-input, .mud-input-slot, .mud-input-label,
.mud-table, .mud-dialog, .mud-drawer, .mud-appbar,
input, button, select, textarea {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, Arial, sans-serif !important;
}

/* ==========================================================================
   Vazirmatn — فونت اصلی کل ادمین — مسیر: wwwroot/fonts/vazirmatn/
   ========================================================================== */

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   IranYekan (فونت فاکتور انگلیسی) — مسیر: wwwroot/fonts/iranyekan/
   ========================================================================== */

@font-face {
    font-family: 'iranyekan';
    src: url('/fonts/iranyekan/woff2/iranyekanwebregular.woff2') format('woff2'),
         url('/fonts/iranyekan/woff/iranyekanwebregular.woff') format('woff'),
         url('/fonts/iranyekan/ttf/iranyekanwebregular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iranyekan';
    src: url('/fonts/iranyekan/woff2/iranyekanwebbold.woff2') format('woff2'),
         url('/fonts/iranyekan/woff/iranyekanwebbold.woff') format('woff'),
         url('/fonts/iranyekan/ttf/iranyekanwebbold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iranyekan';
    src: url('/fonts/iranyekan/woff2/iranyekanweblight.woff2') format('woff2'),
         url('/fonts/iranyekan/woff/iranyekanweblight.woff') format('woff'),
         url('/fonts/iranyekan/ttf/iranyekanweblight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   IranYekan Farsi Number (فونت فاکتور فارسی — اعداد فارسی) — مسیر: wwwroot/fonts/iranyekanfarsinumber/
   توجه: نام فایل‌ها شامل پرانتز است؛ url باید همیشه داخل گیومه باشد.
   ========================================================================== */

@font-face {
    font-family: 'iranyekanfarsinumber';
    src: url('/fonts/iranyekanfarsinumber/woff2/iranyekanwebregular(fanum).woff2') format('woff2'),
         url('/fonts/iranyekanfarsinumber/woff/iranyekanwebregular(fanum).woff') format('woff'),
         url('/fonts/iranyekanfarsinumber/ttf/iranyekanwebregular(fanum).ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iranyekanfarsinumber';
    src: url('/fonts/iranyekanfarsinumber/woff2/iranyekanwebbold(fanum).woff2') format('woff2'),
         url('/fonts/iranyekanfarsinumber/woff/iranyekanwebbold(fanum).woff') format('woff'),
         url('/fonts/iranyekanfarsinumber/ttf/iranyekanwebbold(fanum).ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iranyekanfarsinumber';
    src: url('/fonts/iranyekanfarsinumber/woff2/iranyekanweblight(fanum).woff2') format('woff2'),
         url('/fonts/iranyekanfarsinumber/woff/iranyekanweblight(fanum).woff') format('woff'),
         url('/fonts/iranyekanfarsinumber/ttf/iranyekanweblight(fanum).ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
