/**
 * Font Enforcement - BusinessMentors Platform
 * ==========================================
 *
 * This file ensures consistent font usage across the entire platform.
 * Import after the unified theme system to override any inconsistent fonts.
 *
 * BRAND FONTS:
 * - Parkinsans: Headings, CTAs, important elements
 * - Lato: Body text, descriptions, forms
 *
 * Import in layout templates:
 * @import url('./business-mentors-unified-theme.css');
 * @import url('./font-enforcement.css');
 */

/* ========================================
   📝 GLOBAL FONT ENFORCEMENT
   ======================================== */

/* Ensure all headings use Parkinsans font */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.heading, .title, .subtitle,
.page-title, .section-title,
.card-title, .modal-title,
.nav-title, .brand-title,
.hero-title, .display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-heading) !important;
    font-weight: var(--font-weight-semibold) !important;
}

/* Ensure main headings are bold */
h1, h2, .h1, .h2, .hero-title, .page-title {
    font-weight: var(--font-weight-bold) !important;
}

/* Ensure body text elements use Lato font */
body, p, span, div, article, section,
input, textarea, select, option,
label, button,
.text, .content, .description,
.form-control, .form-text, .help-text,
.card-text, .list-item, .nav-link,
.dropdown-item, .breadcrumb-item,
.alert, .badge-text, .tooltip, .popover {
    font-family: var(--font-body) !important;
}

/* Button and CTA elements should use heading font */
.btn, .button, .cta, .action-button,
.nav-tabs .nav-link, .nav-pills .nav-link,
.pagination .page-link,
.badge, .label, .tag,
.btn-primary, .btn-secondary, .btn-success,
.btn-warning, .btn-danger, .btn-info {
    font-family: var(--font-heading) !important;
    font-weight: var(--font-weight-semibold) !important;
}

/* Navigation elements should use heading font */
.navbar-brand, .nav-brand,
.sidebar-brand, .logo,
.navbar-nav .nav-link,
.sidebar-nav .nav-link,
.menu-item, .menu-link {
    font-family: var(--font-heading) !important;
    font-weight: var(--font-weight-medium) !important;
}

/* Statistics and numbers should use heading font */
.statistic, .number, .count, .metric,
.price, .amount, .total, .value,
.stat-number, .big-number, .counter {
    font-family: var(--font-heading) !important;
    font-weight: var(--font-weight-bold) !important;
}

/* ========================================
   🚫 OVERRIDE SPECIFIC PROBLEMATIC FONTS
   ======================================== */

/* Override common incorrect font families */
.font-poppins, .font-roboto, .font-arial, .font-helvetica,
[style*="font-family: Poppins"], [style*="font-family: Roboto"],
[style*="font-family: Arial"], [style*="font-family: Helvetica"],
[style*="font-family: 'Poppins'"], [style*="font-family: 'Roboto'"],
[style*="font-family: 'Arial'"], [style*="font-family: 'Helvetica'"] {
    font-family: var(--font-body) !important;
}

/* Override specific problematic font declarations */
* {
    /* Remove any hardcoded font families */
}

*[style*="font-family: Noteworthy"] {
    font-family: var(--font-heading) !important;
}

*[style*="font-family: roboto"] {
    font-family: var(--font-body) !important;
}

/* ========================================
   🎯 PLATFORM-SPECIFIC FONT RULES
   ======================================== */

/* Admin panel fonts */
.admin-panel, .admin-content,
.admin-sidebar, .admin-header,
.admin-nav, .admin-menu {
    font-family: var(--font-body) !important;
}

.admin-title, .admin-heading,
.admin-nav .nav-link {
    font-family: var(--font-heading) !important;
}

/* Mentor/Mentee specific areas */
.mentor-card, .mentee-card,
.profile-card, .session-card {
    font-family: var(--font-body) !important;
}

.mentor-name, .mentee-name,
.session-title, .profile-title {
    font-family: var(--font-heading) !important;
}

/* Forms and inputs */
.form-group label,
.form-label, .input-label,
.field-label, .control-label {
    font-family: var(--font-heading) !important;
    font-weight: var(--font-weight-medium) !important;
}

.form-control, .form-input,
.form-textarea, .form-select {
    font-family: var(--font-body) !important;
}

/* Tables */
.table th, .table-header,
.datatable th, .grid-header {
    font-family: var(--font-heading) !important;
    font-weight: var(--font-weight-semibold) !important;
}

.table td, .table-cell,
.datatable td, .grid-cell {
    font-family: var(--font-body) !important;
}

/* Modal and popup elements */
.modal-title, .popup-title,
.dialog-title, .alert-title {
    font-family: var(--font-heading) !important;
    font-weight: var(--font-weight-bold) !important;
}

.modal-body, .popup-content,
.dialog-content, .alert-content {
    font-family: var(--font-body) !important;
}

/* ========================================
   📱 RESPONSIVE FONT ADJUSTMENTS
   ======================================== */

/* Ensure mobile fonts remain consistent */
@media (max-width: 768px) {
    /* All text elements keep their font families */
    h1, h2, h3, h4, h5, h6 {
        font-family: var(--font-heading) !important;
    }

    p, body, div, span {
        font-family: var(--font-body) !important;
    }

    .btn, button {
        font-family: var(--font-heading) !important;
    }
}

/* ========================================
   🎨 SPECIAL CASES & EXCEPTIONS
   ======================================== */

/* Monospace fonts for code elements */
code, pre, .code, .monospace,
.console, .terminal, .snippet {
    font-family: var(--font-mono) !important;
}

/* Icon fonts should not be affected */
.icon, .fa, .fas, .far, .fab,
[class*="icon-"], [class*="fa-"] {
    /* Keep original font families for icons */
}

/* ========================================
   🏁 FONT ENFORCEMENT COMPLETE
   ======================================== */

/*
 * 🎉 FONT STANDARDIZATION COMPLETE!
 *
 * This file enforces:
 * ✅ Parkinsans for all headings and important elements
 * ✅ Lato for all body text and descriptions
 * ✅ Overrides for common incorrect fonts (Poppins, Roboto, etc.)
 * ✅ Platform-specific font rules
 * ✅ Responsive font consistency
 * ✅ Special handling for code and icon fonts
 *
 * All fonts now follow BusinessMentors brand guidelines.
 */