/* ========================================
   UNIVERSAL FONT IMPROVEMENTS
   Applied to all pages for consistent typography
   ======================================== */

/* ========================================
   IMPORT MODERN FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ========================================
   BASE TYPOGRAPHY
   ======================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

/* ========================================
   HEADINGS
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* ========================================
   PARAGRAPHS & TEXT
   ======================================== */

p {
    font-family: 'Inter', sans-serif !important;
    line-height: 1.7;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.subtitle,
.hero-subtitle,
.section-subtitle {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.75);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn,
button,
.button {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    font-size: 1rem;
}

.btn-primary,
.btn-secondary,
.cta-button {
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

/* ========================================
   CARDS
   ======================================== */

.card h3,
.card h4,
.pricing-card h3,
.feature-card h3,
.stat-card h3,
.service-card h3 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card p,
.card-description {
    font-family: 'Inter', sans-serif !important;
    line-height: 1.7;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar,
.nav,
nav {
    font-family: 'Inter', sans-serif !important;
}

.nav-link,
.nav-menu a,
.navbar a {
    font-weight: 500;
    letter-spacing: 0;
}

.nav-brand,
.brand,
.logo-text {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ========================================
   FORMS
   ======================================== */

input,
textarea,
select {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400;
    letter-spacing: 0;
}

label {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    letter-spacing: 0;
}

::placeholder {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400;
    letter-spacing: 0;
}

/* ========================================
   TABLES
   ======================================== */

table {
    font-family: 'Inter', sans-serif !important;
}

thead th {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

tbody td {
    font-weight: 400;
    letter-spacing: 0;
}

/* ========================================
   BADGES & LABELS
   ======================================== */

.badge,
.label,
.tag {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.875rem;
}

/* ========================================
   STATS & NUMBERS
   ======================================== */

.stat-item h3,
.stat-value,
.number-display {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-label {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ========================================
   PRICING
   ======================================== */

.price,
.pricing-amount {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pricing-period,
.price-suffix {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
}

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */

.alert,
.notification,
.toast {
    font-family: 'Inter', sans-serif !important;
}

.alert-title,
.notification-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.alert-message,
.notification-message {
    font-weight: 400;
    line-height: 1.6;
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero h1,
.hero-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero p,
.hero-subtitle {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0;
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-subtitle {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400;
    line-height: 1.8;
}

/* ========================================
   CODE & MONOSPACE
   ======================================== */

code,
pre,
.code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace !important;
    letter-spacing: 0;
}

/* ========================================
   LINKS
   ======================================== */

a {
    font-family: inherit;
    font-weight: 500;
    text-decoration: none;
}

/* ========================================
   MOBILE RESPONSIVE FONTS
   ======================================== */

@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
    body {
        font-size: 0.9375rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    
    .btn {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.875rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    h4 { font-size: 1.125rem; }
    
    .btn {
        font-size: 0.85rem !important;
    }
}

/* ========================================
   DASHBOARD SPECIFIC
   ======================================== */

.sidebar-section-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.sidebar-menu a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0;
}

.user-name {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.user-email {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400;
    font-size: 0.875rem;
}

/* ========================================
   ADMIN PANEL
   ======================================== */

.admin-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* ========================================
   TICKETS & SUPPORT
   ======================================== */

.ticket-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ticket-message {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400;
    line-height: 1.7;
}

/* ========================================
   BLOG
   ======================================== */

.blog-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.blog-content p {
    font-family: 'Inter', sans-serif !important;
    line-height: 1.8;
    letter-spacing: -0.01em;
}

/* ========================================
   GRADIENT TEXT EFFECT
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SPECIAL EMPHASIS
   ======================================== */

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
