/* Text Font Preview - Estilos */

/* Importar fuentes directamente en el CSS */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Bebas+Neue&family=Orbitron:wght@700&family=Permanent+Marker&family=Special+Elite&family=Allura&family=Black+Ops+One&family=Righteous&family=Alfa+Slab+One&family=Metal+Mania&family=Creepster&family=Audiowide&family=Abril+Fatface&family=Bungee&family=Great+Vibes&display=swap');


.tfp-container {
    max-width: 600px;
    margin: 32px auto;
    padding: 24px 18px;
    background: #f7f7f7;
    border-radius: 6px;
    border: 1px solid #222;
    box-shadow: 0 2px 8px rgba(34,34,34,0.07);
}


.tfp-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
}

.tfp-input-group,
.tfp-select-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}


.tfp-input-group label,
.tfp-select-group label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #222;
    font-size: 15px;
    letter-spacing: 0.5px;
}


.tfp-text-input,
.tfp-font-select {
    padding: 10px 12px;
    border: 1.5px solid #bbb;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    color: #222;
    transition: border-color 0.2s ease;
    height: 44px;
    box-sizing: border-box;
}


.tfp-text-input:focus,
.tfp-font-select:focus {
    outline: none;
    border-color: #222;
}


.tfp-font-select {
    cursor: pointer;
    background-color: #fff;
    font-family: inherit;
}


.tfp-preview-container {
    background: #fff;
    border: 2px solid #222;
    border-radius: 6px;
    padding: 36px 12px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(34,34,34,0.06);
}


.tfp-preview-text {
    font-size: 32px;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
    transition: font-family 0.3s ease;
    letter-spacing: 0.5px;
}


/* Responsive */
@media (max-width: 768px) {
    .tfp-controls {
        flex-direction: column;
        gap: 10px;
    }
    .tfp-container {
        padding: 12px;
    }
    .tfp-preview-text {
        font-size: 20px;
    }
}

/* Estado vacío */
.tfp-preview-text.tfp-empty {
    color: #999;
    font-style: italic;
}
