/**
 * EXTRUCK Persian Typography Architecture — Vazirmatn Enterprise Suite
 * Complete font-face declarations, CDN fallbacks, variable weights & universal inheritance.
 */

/* 1. High-Speed CDN Fallback Imports (Google Fonts + jsDelivr) */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* 2. Self-Hosted Variable & Multi-Weight @font-face Declarations */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2-variations'),
       url('/assets/fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2-variations'),
       url('./fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2'),
       url('/assets/fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/vazirmatn-latin-wght-normal.woff2') format('woff2-variations'),
       url('/assets/fonts/vazirmatn-latin-wght-normal.woff2') format('woff2-variations'),
       url('./fonts/vazirmatn-latin-wght-normal.woff2') format('woff2'),
       url('/assets/fonts/vazirmatn-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Backward compatibility aliases for 'Vazir' & 'Vazir Matn' */
@font-face {
  font-family: 'Vazir';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Vazir Matn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2');
}

/* 3. Universal Persian Typography Enforcement across All Frontend Elements */
*,
*::before,
*::after {
  font-family: 'Vazirmatn', 'Vazir', 'Vazir Matn', Vazirmatn, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Tahoma, Arial, sans-serif;
}

html,
body,
button,
input,
optgroup,
select,
textarea,
h1, h2, h3, h4, h5, h6,
p, span, a, div, li, label, small, b, strong, em,
table, thead, tbody, tfoot, tr, th, td,
.font-sans,
.prose, .prose *,
.ex-blog, .ex-blog *,
.ex-catalog, .ex-catalog *,
.ex-wiki, .ex-wiki *,
.glass-card, .glass-panel,
.badge, .ex-chip,
.btn-b2b-gold, .btn-b2b-navy,
.modal, .drawer, .dropdown,
[x-data] {
  font-family: 'Vazirmatn', 'Vazir', 'Vazir Matn', Vazirmatn, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Tahoma, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 4. Font Weight Utility Enhancements */
.font-thin       { font-weight: 100 !important; }
.font-extralight { font-weight: 200 !important; }
.font-light      { font-weight: 300 !important; }
.font-normal     { font-weight: 400 !important; }
.font-medium     { font-weight: 500 !important; }
.font-semibold   { font-weight: 600 !important; }
.font-bold       { font-weight: 700 !important; }
.font-extrabold  { font-weight: 800 !important; }
.font-black      { font-weight: 900 !important; }

/* 5. Precise Exemptions for FontAwesome Icons */
i.fa,
i.fas,
i.far,
i.fab,
i.fa-solid,
i.fa-regular,
i.fa-brands,
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
[class^="fa-"],
[class*=" fa-"],
.svg-inline--fa,
.ex-icon,
.ex-ico,
.ex-icon-xs,
.ex-icon-sm,
.ex-icon-md,
.ex-icon-lg {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* 6. Precise Exemptions for Monospace / Code Elements */
code,
kbd,
samp,
pre,
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}
