/**
 * Text Expander for Elementor - Estilos
 * 
 * Estilos para o componente de expansão de texto
 */

.text-expander-wrapper {
    position: relative;
    margin: 20px 0;
    line-height: 1.6;
}

.text-expander-content {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.text-expander-short,
.text-expander-full {
    transition: opacity 0.3s ease-in-out;
}

.text-expander-ellipsis {
    display: inline;
    margin-left: 2px;
    color: #666;
}

.text-expander-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none;
}

.text-expander-button:hover {
    background-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.text-expander-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 115, 170, 0.3);
}

.text-expander-button:focus {
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

/* Animação suave ao expandir/colapsar */
.text-expander-full {
    animation: fadeIn 0.4s ease-in-out;
}

.text-expander-short {
    animation: fadeIn 0.4s ease-in-out;
}

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

/* Estilos responsivos */
@media (max-width: 768px) {
    .text-expander-content {
        font-size: 15px;
    }
    
    .text-expander-button {
        padding: 10px 18px;
        font-size: 13px;
        width: 100%;
        max-width: 200px;
    }
}

/* Tema escuro (opcional) */
.text-expander-wrapper.dark-theme {
    color: #e0e0e0;
}

.text-expander-wrapper.dark-theme .text-expander-content {
    color: #e0e0e0;
}

.text-expander-wrapper.dark-theme .text-expander-button {
    background-color: #1e88e5;
}

.text-expander-wrapper.dark-theme .text-expander-button:hover {
    background-color: #1565c0;
}

/* Estilos alternativos de botão */
.text-expander-button.style-outline {
    background-color: transparent;
    border: 2px solid #0073aa;
    color: #0073aa;
}

.text-expander-button.style-outline:hover {
    background-color: #0073aa;
    color: #fff;
}

/* Compatibilidade com Elementor */
.elementor-widget-text-editor .text-expander-wrapper {
    margin: 0;
}

.elementor-widget-text-editor .text-expander-content p:last-child {
    margin-bottom: 0;
}
