/**
 * Font definitions with fallbacks
 * This file provides font definitions that work without Google Fonts
 */

/* Persian/Farsi font stack with proper fallbacks */
body, 
html {
    font-family: 
        'Vazirmatn',        /* Primary Persian font (if available) */
        'Vazir',            /* Legacy Vazir font */
        'Tahoma',           /* Windows default Persian font */
        'Arial',            /* Cross-platform fallback */
        'Helvetica',        /* macOS fallback */
        'Segoe UI',         /* Windows 10+ fallback */
        'Roboto',           /* Android fallback */
        sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Vazirmatn font face definition with all weights */
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: local('Vazirmatn Thin'), 
         local('Vazirmatn-Thin'),
         url('../fonts/Vazirmatn-Thin.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Thin.woff') format('woff'),
         url('../fonts/Vazirmatn-Thin.ttf') format('truetype');
}

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

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

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

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

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

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

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

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

/* Legacy Vazir font support */
@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Vazir'), 
         local('Vazir-Regular'),
         local('Vazirmatn'),
         local('Vazirmatn-Regular'),
         url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
}

/* Font weight classes */
.font-thin { font-weight: 100; }
.font-extralight { font-weight: 200; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Ensure proper text rendering for Persian text */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL text direction support */
[dir="rtl"] {
    text-align: right;
}

/* Ensure proper spacing for Persian text */
p, div, span {
    word-spacing: normal;
    letter-spacing: normal;
}

/* Headings with proper font weights */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.2;
}

/* Form elements */
input, textarea, select, button {
    font-family: inherit;
}

/* Code and monospace text */
code, pre, .font-mono {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
}






