/* ==========================================================================
   Persian Typographic Font Library & WebFonts
   Includes Peyda (Local + Asset), Shabnam, Sahel, Samim, Vazirmatn, IRANSans, Dana, Yekan
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CDN Fonts: Shabnam, Sahel, Samim (Rastikerdar Open Fonts)
   -------------------------------------------------------------------------- */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/shabnam-font@v5.0.1/dist/font-face.css');
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/sahel-font@v3.4.0/dist/font-face.css');
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/samim-font@v4.0.5/dist/font-face.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700;800;900&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   2. Peyda Font (پیدا - Naser Khadem)
   Local system font lookup + Local asset fallback
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Peyda';
  src: local('Peyda-Thin'), local('PeydaWeb-Thin'), local('Peyda Thin'),
       url('../fonts/Peyda-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Peyda';
  src: local('Peyda-ExtraLight'), local('PeydaWeb-ExtraLight'), local('Peyda ExtraLight'),
       url('../fonts/peyda-extralight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Peyda';
  src: local('Peyda-Light'), local('PeydaWeb-Light'), local('Peyda Light'),
       url('../fonts/peyda-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Peyda';
  src: local('Peyda'), local('Peyda-Regular'), local('PeydaWeb-Regular'), local('Peyda Regular'), local('PeydaVF'),
       url('../fonts/Peyda-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Peyda';
  src: local('Peyda-Medium'), local('PeydaWeb-Medium'), local('Peyda Medium'),
       url('../fonts/Peyda-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Peyda';
  src: local('Peyda-SemiBold'), local('PeydaWeb-SemiBold'), local('Peyda SemiBold'),
       url('../fonts/Peyda-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Peyda';
  src: local('Peyda-Bold'), local('PeydaWeb-Bold'), local('Peyda Bold'),
       url('../fonts/Peyda-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Peyda';
  src: local('Peyda-ExtraBold'), local('PeydaWeb-ExtraBold'), local('Peyda ExtraBold'),
       url('../fonts/Peyda-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Peyda';
  src: local('Peyda-Black'), local('PeydaWeb-Black'), local('Peyda Black'),
       url('../fonts/Peyda-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   3. IRANSansX / IRANSans (ایران‌سنس)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'IRANSansX';
  src: local('IRANSansX-Regular'), local('IRANSansX'), local('IRANSansWeb'), local('IRANSans-Regular'), local('IRANSans'), local('Iranian Sans'),
       url('../fonts/Iranian-Sans.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansX';
  src: local('IRANSansX-Bold'), local('IRANSansX Bold'), local('IRANSans-Bold'), local('IRANSansWeb-Bold');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   4. Dana (دانا)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Dana';
  src: local('Dana-Regular'), local('Dana'), local('DanaWeb'), local('DanaVF');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: local('Dana-Bold'), local('Dana Bold'), local('DanaWeb-Bold');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   5. Yekan Bakh / B Yekan (یکان باخ / یکان)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Yekan Bakh';
  src: local('Yekan Bakh'), local('YekanBakh-Regular'), local('YekanBakh'), local('YekanBakhFaNum-Regular'), local('B Yekan'), local('BYekan'), local('W_yekan'),
       url('../fonts/BYekan.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: local('Yekan Bakh Bold'), local('YekanBakh-Bold'), local('B Yekan Bold'), local('W_yekan Bold');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Font Class Modifiers for Markdown Body & Preview
   -------------------------------------------------------------------------- */
.font-vazirmatn {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.font-peyda {
  font-family: 'Peyda', 'PeydaWeb', 'Vazirmatn', -apple-system, sans-serif !important;
}

.font-iransans {
  font-family: 'IRANSansX', 'IRANSans', 'IRANSansWeb', 'Vazirmatn', -apple-system, sans-serif !important;
}

.font-dana {
  font-family: 'Dana', 'DanaWeb', 'Vazirmatn', -apple-system, sans-serif !important;
}

.font-yekan {
  font-family: 'Yekan Bakh', 'YekanBakh', 'B Yekan', 'W_yekan', 'Vazirmatn', sans-serif !important;
}

.font-shabnam {
  font-family: 'Shabnam', 'Vazirmatn', -apple-system, sans-serif !important;
}

.font-sahel {
  font-family: 'Sahel', 'Vazirmatn', -apple-system, sans-serif !important;
}

.font-samim {
  font-family: 'Samim', 'Vazirmatn', -apple-system, sans-serif !important;
}

.font-noto-sans {
  font-family: 'Noto Sans Arabic', 'Vazirmatn', -apple-system, sans-serif !important;
}

.font-noto-naskh {
  font-family: 'Noto Naskh Arabic', 'Vazirmatn', serif !important;
}
