/* Custom Kurdish Font - K24 Kurdish Bold */
@font-face {
    font-family: 'K24 Kurdish Bold';
    src: url('/ahmadmanaf/K24KurdishBold-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Enhanced Kurdish Font Stack with K24 Kurdish Bold */
[lang="ku"], .kurdish-text {
    font-family: 'K24 Kurdish Bold', 'Scheherazade New', 'Noto Sans Arabic', 'Amiri', 'KufiStandardGK', 'Arial Unicode MS', 'Tahoma', sans-serif !important;
    font-weight: bold;
    line-height: 1.8;
    letter-spacing: 0.3px;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Kurdish Headings with K24 Kurdish Bold */
[lang="ku"] h1, [lang="ku"] h2, [lang="ku"] h3, [lang="ku"] h4, [lang="ku"] h5, [lang="ku"] h6,
.kurdish-text h1, .kurdish-text h2, .kurdish-text h3, .kurdish-text h4, .kurdish-text h5, .kurdish-text h6 {
    font-family: 'K24 Kurdish Bold', 'Scheherazade New', 'Noto Sans Arabic', 'Amiri', sans-serif !important;
    font-weight: bold;
    line-height: 1.6;
    letter-spacing: 0.4px;
}

/* Kurdish Form Elements */
[lang="ku"] input, [lang="ku"] textarea, [lang="ku"] select, [lang="ku"] button,
.kurdish-text input, .kurdish-text textarea, .kurdish-text select, .kurdish-text button {
    font-family: 'K24 Kurdish Bold', 'Noto Sans Arabic', 'Scheherazade New', 'Amiri', sans-serif !important;
    font-size: 16px;
    line-height: 1.7;
    font-weight: bold;
}

/* Kurdish Navigation and UI Elements */
[lang="ku"] .navbar-brand, [lang="ku"] .btn, [lang="ku"] .alert, [lang="ku"] .category-card h3,
.kurdish-text .navbar-brand, .kurdish-text .btn, .kurdish-text .alert, .kurdish-text .category-card h3 {
    font-family: 'K24 Kurdish Bold', 'Scheherazade New', 'Noto Sans Arabic', sans-serif !important;
    font-weight: bold;
}

/* Kurdish Table Text */
[lang="ku"] .data-table th, [lang="ku"] .data-table td,
.kurdish-text .data-table th, .kurdish-text .data-table td {
    font-family: 'K24 Kurdish Bold', 'Noto Sans Arabic', 'Scheherazade New', sans-serif !important;
    line-height: 1.7;
    font-weight: bold;
}

/* Kurdish Language Selector */
[lang="ku"] .language-option, .language-option.kurdish-text {
    font-family: 'K24 Kurdish Bold', 'Scheherazade New', 'Noto Sans Arabic', sans-serif !important;
    font-weight: bold;
}

/* Kurdish Dashboard Elements */
[lang="ku"] .dashboard-title h1, [lang="ku"] .dashboard-title p,
.kurdish-text .dashboard-title h1, .kurdish-text .dashboard-title p {
    font-family: 'K24 Kurdish Bold', 'Scheherazade New', sans-serif !important;
    font-weight: bold;
}

/* Header and Navigation - K24 Kurdish Bold */
[lang="ku"] .navbar, [lang="ku"] .navbar *,
.kurdish-text .navbar, .kurdish-text .navbar * {
    font-family: 'K24 Kurdish Bold', 'Scheherazade New', 'Noto Sans Arabic', sans-serif !important;
    font-weight: bold;
}

/* Dashboard Cards and Statistics */
[lang="ku"] .category-card, [lang="ku"] .category-card *,
[lang="ku"] .stat-card, [lang="ku"] .stat-card *,
.kurdish-text .category-card, .kurdish-text .category-card *,
.kurdish-text .stat-card, .kurdish-text .stat-card * {
    font-family: 'K24 Kurdish Bold', 'Scheherazade New', sans-serif !important;
    font-weight: bold;
}

/* Dashboard Content Area */
[lang="ku"] .dashboard-content, [lang="ku"] .dashboard-content *,
.kurdish-text .dashboard-content, .kurdish-text .dashboard-content * {
    font-family: 'K24 Kurdish Bold', 'Scheherazade New', 'Noto Sans Arabic', sans-serif !important;
    font-weight: bold;
}

/* Categories Grid */
[lang="ku"] .categories-grid, [lang="ku"] .categories-grid *,
.kurdish-text .categories-grid, .kurdish-text .categories-grid * {
    font-family: 'K24 Kurdish Bold', 'Scheherazade New', sans-serif !important;
    font-weight: bold;
}

/* Kurdish Settings Page */
[lang="ku"] .settings-section h3, [lang="ku"] .section-header h3,
.kurdish-text .settings-section h3, .kurdish-text .section-header h3 {
    font-family: 'K24 Kurdish Bold', 'Scheherazade New', sans-serif !important;
    font-weight: bold;
}

/* Kurdish Login Page */
[lang="ku"] .login-header h1, [lang="ku"] .login-header p,
.kurdish-text .login-header h1, .kurdish-text .login-header p {
    font-family: 'K24 Kurdish Bold', 'Scheherazade New', sans-serif !important;
}

/* Mobile Kurdish Font Adjustments */
@media (max-width: 768px) {
    [lang="ku"], .kurdish-text {
        font-size: 15px;
        line-height: 1.9;
        letter-spacing: 0.2px;
    }
    
    [lang="ku"] h1, .kurdish-text h1 {
        font-size: 26px;
        letter-spacing: 0.3px;
    }
    
    [lang="ku"] h2, .kurdish-text h2 {
        font-size: 22px;
        letter-spacing: 0.3px;
    }
    
    [lang="ku"] h3, .kurdish-text h3 {
        font-size: 18px;
        letter-spacing: 0.2px;
    }
    
    [lang="ku"] .form-control, .kurdish-text .form-control {
        font-size: 16px;
        line-height: 1.8;
    }
}

/* High DPI Display Optimization for K24 Kurdish Bold */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    [lang="ku"], .kurdish-text {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles for Kurdish */
@media print {
    [lang="ku"], .kurdish-text {
        font-family: 'K24 Kurdish Bold', serif !important;
        color: black !important;
    }
}
