/* Language-specific font support for ChirpBot */

/* Import Google Fonts for Arabic and Hindi */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;700&family=Noto+Sans+Devanagari:wght@400;700&display=swap');

/* Default font stack for all languages */
html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Arabic-specific fonts */
html[lang="ar"] {
    font-family: 'Noto Sans Arabic', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arabic Typesetting', sans-serif;
}

html[lang="ar"] body {
    font-family: 'Noto Sans Arabic', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arabic Typesetting', sans-serif;
}

/* Hindi-specific fonts (Devanagari script) */
html[lang="hi"] {
    font-family: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Mangal', sans-serif;
}

html[lang="hi"] body {
    font-family: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Mangal', sans-serif;
}

/* Ensure headings also use language-specific fonts */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: 'Noto Sans Arabic', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Arabic Typesetting', sans-serif;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] h5,
html[lang="hi"] h6 {
    font-family: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Mangal', sans-serif;
}

/* Button and UI element font support */
html[lang="ar"] button,
html[lang="ar"] .btn {
    font-family: 'Noto Sans Arabic', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="hi"] button,
html[lang="hi"] .btn {
    font-family: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Improve Arabic text rendering */
html[lang="ar"] {
    font-feature-settings: "liga" 1, "calt" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improve Devanagari text rendering */
html[lang="hi"] {
    font-feature-settings: "liga" 1, "calt" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
