/* Persian Fonts for Passin Multisite */

/* Yekan Font - Normal Weight */
@font-face {
    font-family: 'Yekan';
    src: url('../../Yekan.woff') format('woff'),
         url('../../Yekan.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB1D-FB4F;
}

/* Yekan Font - Bold Weight */
@font-face {
    font-family: 'Yekan';
    src: url('../../Yekan.woff') format('woff'),
         url('../../Yekan.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB1D-FB4F;
}

/* Vazir Font (Fallback) - Using Yekan */
@font-face {
    font-family: 'Vazir';
    src: url('../../Yekan.woff') format('woff'),
         url('../../Yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB1D-FB4F;
}

/* Global Font Settings */
* {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Universal Font Application */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer,
header, hgroup, menu, nav, output, ruby, section,
summary, time, mark, audio, video {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Exclude Icons from Font Family */
i, .fas, .far, .fab, .fa, [class*="fa-"], [class*="icon-"] {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'Font Awesome 6 Regular', 'Font Awesome 5 Free', 'Font Awesome 5 Brands', 'Font Awesome 5 Regular', 'Font Awesome 4.7.0' !important;
}

/* Body and Typography */
body, html {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

/* System Fonts Fallback */
@font-face {
    font-family: 'Tahoma';
    src: local('Tahoma');
    font-display: swap;
}

@font-face {
    font-family: 'Arial';
    src: local('Arial');
    font-display: swap;
}

/* Form Elements */
input, textarea, select, button, label, .form-control, .form-label {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Navigation */
nav, .nav, .navbar, .navbar-brand, .nav-link, .dropdown-item {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Buttons */
.btn, .btn-primary, .btn-secondary, .btn-success, .btn-warning, .btn-danger, .btn-info, .btn-light, .btn-dark {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Cards and Alerts */
.card, .card-title, .card-text, .alert, .alert-heading {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Tables */
table, th, td, .table, .table th, .table td {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Lists */
ul, ol, li, .list-group, .list-group-item {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Modal and Popover */
.modal, .modal-title, .modal-body, .popover, .popover-title, .popover-content {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Tooltip */
.tooltip, .tooltip-inner {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Badge and Labels */
.badge, .label {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Pagination */
.pagination, .page-link, .page-item {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Breadcrumb */
.breadcrumb, .breadcrumb-item {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Progress */
.progress, .progress-bar {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Custom Classes */
.persian-text {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
}

.yekan-text {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
}

/* Font Sizes for Better Persian Readability */
.persian-text-sm {
    font-size: 13px;
}

.persian-text-md {
    font-size: 14px;
}

.persian-text-lg {
    font-size: 16px;
}

.persian-text-xl {
    font-size: 18px;
}

/* Line Height for Persian Text */
.persian-text {
    line-height: 1.8;
}

/* Letter Spacing for Persian Text */
.persian-text {
    letter-spacing: 0.5px;
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    body, html {
        font-size: 13px;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-size: 1.2em;
    }
    
    .form-control, input, textarea, select {
        font-size: 13px;
    }
}

@media (min-width: 1200px) {
    body, html {
        font-size: 15px;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-size: 1.3em;
    }
    
    .form-control, input, textarea, select {
        font-size: 15px;
    }
}

/* Print Styles */
@media print {
    * {
        font-family: 'Yekan', 'Tahoma', 'Arial', sans-serif !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.6;
    }
}
