/* 
 * Global Font Application - Inter and Prompt Fonts
 * Apply Inter and Prompt fonts to ALL elements across the entire EZKEY project
 * Version: 3.0 - Unified Font System with Inter and Prompt
 */

/* Import Inter and Prompt fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

/* Apply Inter and Prompt fonts to ALL elements */
* {
    font-family: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure body uses Inter and Prompt fonts */
body {
    font-family: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Apply to all form elements */
input, 
button, 
select, 
textarea, 
label,
option {
    font-family: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Apply to all text elements */
h1, h2, h3, h4, h5, h6,
p, span, div, a,
strong, em, b, i,
ul, ol, li,
table, th, td,
pre, code {
    font-family: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Apply to Tailwind/Framework elements */
.font-sans,
.font-serif,
.font-mono {
    font-family: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Override any existing font declarations */
[class*="font-"],
[style*="font-family"] {
    font-family: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Utility class for explicit Inter and Prompt fonts application */
.font-inter-prompt {
    font-family: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Font weight utilities */
.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }

/* Ensure smooth font rendering */
* {
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "liga" on, "calt" on;
    font-feature-settings: "liga" on, "calt" on;
}
