/* Fonts Configuration for Jiilna Website */

/* Font Awesome - محلي من الهوست (static/css/fontawesome-all.min.css + static/webfonts/) */
@import url('fontawesome-all.min.css');

/* Nunito Font - Enhanced @font-face definitions for better browser compatibility */

/* Nunito Regular */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Nunito-Regular.woff2') format('woff2'),
         url('../fonts/Nunito-VariableFont_wght.ttf') format('truetype');
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nunito Italic */
@font-face {
    font-family: 'Nunito';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/Nunito-Italic-VariableFont_wght.ttf') format('truetype');
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nunito Variable Font - Covers all weights */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 200 900;
    src: url('../fonts/Nunito-VariableFont_wght.ttf') format('truetype-variations');
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Font Awesome: يُحمّل من CDN في كل صفحة تحتاج الأيقونات. لا نعرّف الخط هنا لأن ملفات webfonts غير موجودة محلياً. */

/* Font Variables */
:root {
    --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-fallback: 'Arial', 'Helvetica', sans-serif;
}

/* Global Font Settings - لا يطبق على الأيقونات حتى تظهر أيقونات Font Awesome */
* {
    font-family: var(--font-primary);
}
/* تأكيد أن عناصر الأيقونات لا ترث خط النص (يأتي الخط من CDN أعلاه) */
.fa, .fas, .far, .fab, [class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", var(--font-fallback) !important;
}
.fab {
    font-family: "Font Awesome 6 Brands", var(--font-fallback) !important;
}

/* Font Weight Utilities */
.font-light { font-weight: 200; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Font Size Utilities */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

/* Responsive Font Sizes */
@media (max-width: 768px) {
    .text-4xl { font-size: 1.875rem; }
    .text-3xl { font-size: 1.5rem; }
    .text-2xl { font-size: 1.25rem; }
    .text-xl { font-size: 1.125rem; }
}

/* Font Loading Optimization */
.font-loading {
    font-family: var(--font-fallback);
    font-display: swap;
}

/* Font Smoothing for better rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Font Loading Performance */
.font-preload {
    font-display: swap;
}

/* Fallback for older browsers */
@supports not (font-display: swap) {
    @font-face {
        font-family: 'Nunito';
        font-style: normal;
        font-weight: 400;
        src: url('../fonts/Nunito-Regular.woff2') format('woff2'),
             url('../fonts/Nunito-VariableFont_wght.ttf') format('truetype');
    }
} 