/* Kurdish Font - Using Google Fonts Noto Sans Arabic (excellent for Kurdish Sorani) */
/* Font is loaded via link tag in styles.blade.php */

/* Thai Font - THSarabunNew with fallback */
@font-face {
    font-family: 'THSarabunNew';
    src: url('/fonts/THSarabunNew.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: optional; /* Use optional to suppress errors if font fails to load */
    unicode-range: U+0E00-0E7F;
}

/* Primary fallback fonts for Kurdish text */
@font-face {
    font-family: 'Kurdish Fallback';
    src: local('Arial Unicode MS'), local('Tahoma'), local('Arial'), local('Segoe UI');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* Force Kurdish text to use Noto Sans Arabic with comprehensive fallback */
body[lang="ku"] .kurdish-text,
html[lang="ku"] .kurdish-text,
[lang="ku"] .kurdish-text {
    font-family: 'Noto Sans Arabic', 'Kurdish Fallback', 'Arial Unicode MS', 'Tahoma', 'Arial', 'Segoe UI', sans-serif;
    font-display: swap;
}

/* Apply Noto Sans Arabic font to Kurdish text - more specific targeting */
.kurdish-text,
.kurdish-font {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}

/* Specific Kurdish elements - only when explicitly set */
body[lang="ku"].kurdish-content {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}

/* Kurdish text in admin panel */
.tt-nav-link-text,
.tt-page-title,
.card-title,
.form-label,
.btn,
.table,
.alert,
.modal-title,
.navbar-brand,
.sidebar-menu,
.tt-sidebar-nav,
.tt-brand,
.tt-brand-link {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}

/* Ensure Kurdish text uses Noto Sans Arabic font */
*[data-localize],
*[data-translate],
.localize,
.translate {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}

/* Override for Kurdish content */
.kurdish-content {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif !important;
}

/* Dashboard specific Kurdish elements */
.dashboard-kurdish,
.chart-title,
.stat-title,
.metric-title {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}
