/* =========================================================
   RobotTrade — Local Font Declarations
   All fonts are loaded locally — no external CDN requests.
   ========================================================= */

/* ─── Inter (English / German body text) ───────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/Inter-SemiBold.woff2') format('woff2');
}

/* ─── Sora (Headings / Brand — Latin only) ─────────────── */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sora/Sora-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sora/Sora-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sora/Sora-Bold.woff2') format('woff2');
}

/* ─── JetBrains Mono (Monospace — all languages) ───────── */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains/JetBrainsMono-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains/JetBrainsMono-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains/JetBrainsMono-Bold.woff2') format('woff2');
}

/* ─── Vazirmatn (Persian) — local files ────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/vazir/Vazirmatn-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/vazir/Vazirmatn-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/vazir/Vazirmatn-Bold.woff2') format('woff2');
}

/* ─── Noto Sans Arabic (Arabic only) ───────────────────── */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/noto-arabic/NotoSansArabic-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/noto-arabic/NotoSansArabic-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/noto-arabic/NotoSansArabic-Bold.woff2') format('woff2');
}

/* ─── Noto Sans Devanagari (Hindi only) ────────────────── */
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/noto-devanagari/NotoSansDevanagari-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/noto-devanagari/NotoSansDevanagari-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/noto-devanagari/NotoSansDevanagari-Bold.ttf') format('truetype');
}

/* ─── Noto Nastaliq Urdu (Urdu only) ──────────────────── */
@font-face {
  font-family: 'Noto Nastaliq Urdu';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/noto-urdu/NotoNastaliqUrdu-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Nastaliq Urdu';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/noto-urdu/NotoNastaliqUrdu-Bold.ttf') format('truetype');
}


/* =========================================================
   Language-specific font stacks
   Each language gets its own dedicated body font.
   ========================================================= */

/* Default (English) — Inter body, Sora headings */
html[lang="en"], html[lang="de"] {
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Sora', 'Inter', sans-serif;
}

/* Persian — Vazirmatn only */
html[lang="fa"] {
  --font-body: 'Vazirmatn', system-ui, sans-serif;
  --font-heading: 'Vazirmatn', system-ui, sans-serif;
}

/* Arabic — Noto Sans Arabic */
html[lang="ar"] {
  --font-body: 'Noto Sans Arabic', system-ui, sans-serif;
  --font-heading: 'Noto Sans Arabic', system-ui, sans-serif;
}

/* Hindi — Noto Sans Devanagari */
html[lang="hi"] {
  --font-body: 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-heading: 'Noto Sans Devanagari', system-ui, sans-serif;
}

/* Urdu — Noto Nastaliq Urdu */
html[lang="ur"] {
  --font-body: 'Noto Nastaliq Urdu', system-ui, sans-serif;
  --font-heading: 'Noto Nastaliq Urdu', system-ui, sans-serif;
}
