/* ==========================================================================
   MODERN THEME - Fonts Configuration
   Font: Inter (Primary), Poppins (Display/Logo)
   ========================================================================== */

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

/* Font Family Variables (CSS Custom Properties) */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* Base Font Settings */
body {
    font-family: var(--font-primary);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Display/Heading Font */
h1,
h2,
h3,
h4,
h5,
h6,
.logo-custom,
.login-brand-title,
.configurator-title {
    font-family: var(--font-display);
}

/* Monospace for Code/Terminal */
code,
kbd,
pre,
samp,
#command,
.xterm,
.terminal {
    font-family: var(--font-mono);
}

/* Font Weights */
.font-light {
    font-weight: 300;
}

.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;
}

/* Letter Spacing */
.tracking-tighter {
    letter-spacing: -0.05em;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-normal {
    letter-spacing: 0;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* Line Heights */
.leading-none {
    line-height: 1;
}

.leading-tight {
    line-height: 1.25;
}

.leading-snug {
    line-height: 1.375;
}

.leading-normal {
    line-height: 1.5;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-loose {
    line-height: 2;
}

/* Font Sizes (Responsive Scale) */
.text-xs {
    font-size: 0.75rem;
}

/* 12px */
.text-sm {
    font-size: 0.875rem;
}

/* 14px */
.text-base {
    font-size: 1rem;
}

/* 16px */
.text-lg {
    font-size: 1.125rem;
}

/* 18px */
.text-xl {
    font-size: 1.25rem;
}

/* 20px */
.text-2xl {
    font-size: 1.5rem;
}

/* 24px */
.text-3xl {
    font-size: 1.875rem;
}

/* 30px */
.text-4xl {
    font-size: 2.25rem;
}

/* 36px */
.text-5xl {
    font-size: 3rem;
}

/* 48px */
.text-6xl {
    font-size: 3.75rem;
}

/* 60px */
.text-7xl {
    font-size: 4.5rem;
}

/* 72px */
.text-8xl {
    font-size: 6rem;
}

/* 96px */
.text-9xl {
    font-size: 8rem;
}

/* 128px */

/* Text Rendering Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Disable Text Selection on UI Elements */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Text Truncation Utilities */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 1.75rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.25rem;
    }

    h1 {
        font-size: var(--font-size-h1);
    }

    h2 {
        font-size: var(--font-size-h2);
    }

    h3 {
        font-size: var(--font-size-h3);
    }
}