/* WP Font Preview Frontend Styles */

.wfp-preview-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wfp-controls {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.wfp-font-selector,
.wfp-text-input {
    margin-bottom: 20px;
}

.wfp-font-selector:last-child,
.wfp-text-input:last-child {
    margin-bottom: 0;
}

.wfp-font-selector label,
.wfp-text-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#wfp-font-select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
}

#wfp-font-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

#wfp-preview-text {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    resize: vertical;
    box-sizing: border-box;
}

#wfp-preview-text:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.wfp-size-control {
    margin-bottom: 20px;
}

.wfp-size-control label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#wfp-font-size {
    width: 100%;
    max-width: 400px;
}

#wfp-font-size-value {
    font-weight: 700;
    margin-left: 8px;
}

.wfp-preview-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 6px;
    border: 2px solid #ddd;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wfp-preview-display {
    width: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-align: center;
    word-wrap: break-word;
    white-space: pre-wrap;
    padding: 20px;
}

#wfp-preview-display p {
    color: #999;
    font-size: 150px;
    margin: 0;
}

#wfp-preview-display.has-text {
    line-height: 1.2;
    color: #000;
}

#wfp-preview-display.has-text p {
    color: #000;
    margin: 0;
}

#wfp-loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wfp-preview-container {
        margin: 20px;
        padding: 15px;
    }
    
    .wfp-controls {
        padding: 15px;
    }
    
    #wfp-font-select {
        max-width: 100%;
    }
    
    .wfp-preview-section {
        padding: 20px;
        min-height: 150px;
    }
    
    #wfp-preview-display.has-text {
        font-size: 28px;
    }
}

/* Font Loading Animation */
@keyframes loading {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

#wfp-loading {
    animation: loading 1.5s ease-in-out infinite;
}
