/* Persian UI fonts — Arad primary (body + display). Dana / IRANYekan / Vazir as fallbacks.
 *
 * Use relative font URLs (same directory) so this works under both:
 * - php artisan serve (http://127.0.0.1:8000/fonts/...)
 * - Laragon subdirectory (http://localhost/apk/636/public/fonts/...)
 * Absolute /fonts/... breaks under subdirectory hosts.
 */

/* --- Arad (default) -------------------------------------------------- */
@font-face {
    font-family: "Arad";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./arad-400.woff2") format("woff2");
}
@font-face {
    font-family: "Arad";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("./arad-500.woff2") format("woff2");
}
@font-face {
    font-family: "Arad";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("./arad-600.woff2") format("woff2");
}
@font-face {
    font-family: "Arad";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./arad-700.woff2") format("woff2");
}
@font-face {
    font-family: "Arad";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("./arad-900.woff2") format("woff2");
}

/* --- IRANYekan ------------------------------------------------------- */
@font-face {
    font-family: "IRANYekan";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./iranyekan-400.woff2") format("woff2");
}
@font-face {
    font-family: "IRANYekan";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./iranyekan-700.woff2") format("woff2");
}

/* --- IRANYekanX (related modern sans) -------------------------------- */
@font-face {
    font-family: "IRANYekanX";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./iranyekanx-400.woff2") format("woff2");
}
@font-face {
    font-family: "IRANYekanX";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./iranyekanx-700.woff2") format("woff2");
}
@font-face {
    font-family: "IRANYekanX";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("./iranyekanx-900.woff2") format("woff2");
}

/* --- Dana (fallback / brand theme option) ---------------------------- */
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("./dana-300.woff2") format("woff2");
}
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./dana-400.woff2") format("woff2");
}
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("./dana-500.woff2") format("woff2");
}
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("./dana-600.woff2") format("woff2");
}
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./dana-700.woff2") format("woff2");
}
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("./dana-800.woff2") format("woff2");
}
@font-face {
    font-family: "Dana";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("./dana-900.woff2") format("woff2");
}

/* --- Vazir (fallback) ------------------------------------------------ */
@font-face {
    font-family: "Vazir";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("./Vazir-Light-FD-WOL.woff2") format("woff2"),
         url("./Vazir-Light-FD-WOL.woff") format("woff");
}
@font-face {
    font-family: "Vazir";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./Vazir-FD-WOL.woff2") format("woff2"),
         url("./Vazir-FD-WOL.woff") format("woff");
}
@font-face {
    font-family: "Vazir";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("./Vazir-Medium-FD-WOL.woff2") format("woff2"),
         url("./Vazir-Medium-FD-WOL.woff") format("woff");
}
@font-face {
    font-family: "Vazir";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./Vazir-Bold-FD-WOL.woff2") format("woff2"),
         url("./Vazir-Bold-FD-WOL.woff") format("woff");
}

:root {
    --font-sans: "Arad", "Dana", "IRANYekan", "Vazir", Tahoma, ui-sans-serif, system-ui, sans-serif;
    --font-display: "Arad", "Dana", "IRANYekan", "Vazir", Tahoma, ui-sans-serif, system-ui, sans-serif;
}

html,
body {
    font-family: var(--font-sans) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display) !important;
}

/* Dana Pro optional features when Dana is selected as brand font */
.ss02 {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

.ss03 {
    -moz-font-feature-settings: "ss03";
    -webkit-font-feature-settings: "ss03";
    font-feature-settings: "ss03";
}

/* Domains / URLs / emails / codes — keep Western digits */
[dir="ltr"],
.ltr,
.latin-nums,
.brand-card-url,
.handle,
.links-handle,
.hub-sub,
code,
kbd,
samp,
pre {
    -moz-font-feature-settings: normal;
    -webkit-font-feature-settings: normal;
    font-feature-settings: normal;
}
