/**
 * MileHorse Font Selector Styles
 * 
 * Clean, modern styling for the button-based font selector
 */

/* Overall container */
.mh-font-selector-wrapper {
    margin-bottom: 25px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.mh-font-selector-wrapper h4 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Font selection buttons */
.mh-font-selector-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.mh-font-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mh-font-button:hover {
    background-color: #eaeaea;
    border-color: #bbb;
}

.mh-font-button.mh-font-selected {
    background-color: #e7f4fa;
    border-color: #2271b1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mh-font-number {
    font-weight: 600;
    color: #2271b1;
}

/* Preview container */
.mh-font-preview {
    margin-top: 15px;
}

.mh-preview-container {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    min-height: 100px;
}

.mh-preview-image {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .mh-font-selector-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .mh-font-button {
        width: 100%;
    }
}

/* Animation helpers */
.mh-fade-in {
    animation: mhFadeIn 0.3s ease forwards;
}

@keyframes mhFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Accessibility improvements */
.mh-font-button:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}
