/* Optimized Font Loading for OCINT */

/* Local Font Definitions - No CDN dependencies */

/* Inter Font Family */
@font-face {
    font-family: 'Inter';
    src: url('/css/fonts/Inter-Regular.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/css/fonts/Inter-Medium.woff2') format('woff2');
    font-display: swap;
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/css/fonts/Inter-SemiBold.woff2') format('woff2');
    font-display: swap;
    font-weight: 600;
    font-style: normal;
}

/* Montserrat Font Family */
@font-face {
    font-family: 'Montserrat';
    src: url('/css/fonts/Montserrat-Medium.woff2') format('woff2');
    font-display: swap;
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/css/fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-display: swap;
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/css/fonts/Montserrat-Bold.woff2') format('woff2');
    font-display: swap;
    font-weight: 700;
    font-style: normal;
}

/* Bootstrap Icons */
@font-face {
    font-family: 'Bootstrap Icons';
    src: url('/css/fonts/bootstrap-icons.woff2') format('woff2');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

/* System font stack for optimal performance */
:root {
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Font loading optimization */
.font-loading {
    font-family: var(--font-family-sans-serif);
}

.font-loaded {
    font-family: var(--font-family-sans-serif);
}

/* Icon font optimization */
.bi {
    font-family: 'Bootstrap Icons' !important;
    font-display: swap;
}

/* Prevent font loading from blocking rendering */
* {
    font-display: swap;
}

/* Critical font weights */
.font-weight-light {
    font-weight: 300 !important;
}

.font-weight-normal {
    font-weight: 400 !important;
}

.font-weight-medium {
    font-weight: 500 !important;
}

.font-weight-semibold {
    font-weight: 600 !important;
}

.font-weight-bold {
    font-weight: 700 !important;
} 