/* Font Toggle Styles */
.font-toggle-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    max-width: 280px;
    font-family: system-ui, -apple-system, sans-serif;
    transition: all 0.3s ease;
}

.font-toggle-container.minimized {
    padding: 8px 12px;
    max-width: auto;
}

.font-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1b5a3d;
    font-size: 14px;
}

.font-toggle-header.minimized {
    margin-bottom: 0;
}

.font-toggle-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 2px;
    line-height: 1;
}

.font-toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.font-toggle-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    color: #495057;
}

.font-toggle-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.font-toggle-btn.active {
    background: #1b5a3d;
    color: white;
    border-color: #1b5a3d;
}

.font-toggle-btn.system {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.font-toggle-btn.system.active {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .font-toggle-container {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 12px;
    }
    
    .font-toggle-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .font-toggle-btn {
        padding: 10px 6px;
        font-size: 11px;
    }
}

/* Font Definitions */
.font-1 { --font-primary: 'Inter', system-ui, sans-serif; }
.font-2 { --font-primary: 'Playfair Display', Georgia, serif; }
.font-3 { --font-primary: 'Poppins', system-ui, sans-serif; }
.font-4 { --font-primary: 'Lato', system-ui, sans-serif; }
.font-5 { --font-primary: 'Montserrat', system-ui, sans-serif; }
.font-6 { --font-primary: 'Nunito', system-ui, sans-serif; }
.font-7 { --font-primary: 'Raleway', system-ui, sans-serif; }
.font-8 { --font-primary: 'Source Sans Pro', system-ui, sans-serif; }
.font-9 { --font-primary: 'Oswald', system-ui, sans-serif; }
.font-10 { --font-primary: 'Quicksand', system-ui, sans-serif; }
.font-11 { --font-primary: 'Georgia', serif; }
.font-12 { --font-primary: system-ui, -apple-system, sans-serif; }

/* Apply font variables to ALL text elements */
body, 
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select,
.btn, .navbar-brand, .navbar-nav > li > a,
.card, .card-body, .card-title, .card-text,
.intro h1, .intro p, .intro h3,
.about-inline h3, .about-inline p,
.testimonials-color h3, .testimonials-color p,
.footer2 h3, .footer2 p, .footer-copy,
.mn-weekly-menu-title, .mn-weekly-menu-text,
.pricing h3, .pricing p, .pricing div {
    font-family: var(--font-primary), system-ui, sans-serif !important;
}
