/* IRANYekanX Font Implementation for Persian Content */

/* Thin */
@font-face {
    font-family: 'IRANYekanX';
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/IRANYekanX-Thin.woff2') format('woff2'),
         url('../fonts/IRANYekanX-Thin.woff') format('woff'),
         url('../fonts/IRANYekanX-Thin.ttf') format('truetype');
    font-display: swap;
}

/* UltraLight */
@font-face {
    font-family: 'IRANYekanX';
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/IRANYekanX-UltraLight.woff2') format('woff2'),
         url('../fonts/IRANYekanX-UltraLight.woff') format('woff'),
         url('../fonts/IRANYekanX-UltraLight.ttf') format('truetype');
    font-display: swap;
}

/* Light */
@font-face {
    font-family: 'IRANYekanX';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/IRANYekanX-Light.woff2') format('woff2'),
         url('../fonts/IRANYekanX-Light.woff') format('woff'),
         url('../fonts/IRANYekanX-Light.ttf') format('truetype');
    font-display: swap;
}

/* Regular */
@font-face {
    font-family: 'IRANYekanX';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/IRANYekanX-Regular.woff2') format('woff2'),
         url('../fonts/IRANYekanX-Regular.woff') format('woff'),
         url('../fonts/IRANYekanX-Regular.ttf') format('truetype');
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: 'IRANYekanX';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/IRANYekanX-Medium.woff2') format('woff2'),
         url('../fonts/IRANYekanX-Medium.woff') format('woff'),
         url('../fonts/IRANYekanX-Medium.ttf') format('truetype');
    font-display: swap;
}

/* DemiBold */
@font-face {
    font-family: 'IRANYekanX';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/IRANYekanX-DemiBold.woff2') format('woff2'),
         url('../fonts/IRANYekanX-DemiBold.woff') format('woff'),
         url('../fonts/IRANYekanX-DemiBold.ttf') format('truetype');
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: 'IRANYekanX';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/IRANYekanX-Bold.woff2') format('woff2'),
         url('../fonts/IRANYekanX-Bold.woff') format('woff'),
         url('../fonts/IRANYekanX-Bold.ttf') format('truetype');
    font-display: swap;
}

/* ExtraBold */
@font-face {
    font-family: 'IRANYekanX';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/IRANYekanX-ExtraBold.woff2') format('woff2'),
         url('../fonts/IRANYekanX-ExtraBold.woff') format('woff'),
         url('../fonts/IRANYekanX-ExtraBold.ttf') format('truetype');
    font-display: swap;
}

/* Black */
@font-face {
    font-family: 'IRANYekanX';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/IRANYekanX-Black.woff2') format('woff2'),
         url('../fonts/IRANYekanX-Black.woff') format('woff'),
         url('../fonts/IRANYekanX-Black.ttf') format('truetype');
    font-display: swap;
}

/* ExtraBlack */
@font-face {
    font-family: 'IRANYekanX';
    font-style: normal;
    font-weight: 950;
    src: url('../fonts/IRANYekanX-ExtraBlack.woff2') format('woff2'),
         url('../fonts/IRANYekanX-ExtraBlack.woff') format('woff'),
         url('../fonts/IRANYekanX-ExtraBlack.ttf') format('truetype');
    font-display: swap;
}

/* Heavy */
@font-face {
    font-family: 'IRANYekanX';
    font-style: normal;
    font-weight: 1000;
    src: url('../fonts/IRANYekanX-Heavy.woff2') format('woff2'),
         url('../fonts/IRANYekanX-Heavy.woff') format('woff'),
         url('../fonts/IRANYekanX-Heavy.ttf') format('truetype');
    font-display: swap;
}

/* Apply IRANYekanX to Persian content */
html[lang="fa-IR"] * {
    font-family: 'IRANYekanX', sans-serif !important;
}

/* Ensure proper font rendering */
html[lang="fa-IR"] {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Responsive font sizes */
@media screen and (max-width: 768px) {
    html[lang="fa-IR"] {
        font-size: 14px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    html[lang="fa-IR"] {
        font-size: 15px;
    }
}

@media screen and (min-width: 1025px) {
    html[lang="fa-IR"] {
        font-size: 16px;
    }
} 