/**
 * RESPIRATRON FX - Estilos para efectos visuales
 * 
 * @package WP Fusion
 * @copyright Copyright (c) 2024, Very Good Plugins, https://verygoodplugins.com
 * @license GPL-3.0+
 * @since 3.37.14
 */

/* ===== BOTÓN DE FX (Estilo coherente con theme-toggle-btn) ===== */
#fx-toggle-btn {
    position: absolute;
    top: 15px;
    right: 75px; /* A la izquierda del botón de tema */
    width: 50px;
    height: 50px;
    background-color: rgba(176, 204, 225, 0.9);
    border: 2px solid #79afd2;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#fx-toggle-btn .btn-emoji {
    font-size: 24px !important;
    transition: all 0.3s ease !important;
    filter: grayscale(100%) opacity(0.5);
}

/* Estado activo */
#fx-toggle-btn.fx-active {
    background-color: rgba(37, 194, 242, 0.9);
    border-color: #25c2f2;
    box-shadow: 0 4px 12px rgba(37, 194, 242, 0.5), 0 0 20px rgba(37, 194, 242, 0.3);
}

#fx-toggle-btn.fx-active .btn-emoji {
    filter: grayscale(0%) opacity(1);
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: grayscale(0%) opacity(1) drop-shadow(0 0 2px gold);
    }
    50% {
        transform: scale(1.1) rotate(10deg);
        filter: grayscale(0%) opacity(1) drop-shadow(0 0 8px gold);
    }
}

#fx-toggle-btn:hover {
    background-color: #b0cce1;
    border-color: #79afd2;
    transform: scale(1.1);
}

#fx-toggle-btn:hover .btn-emoji {
    transform: scale(1.15) rotate(15deg) !important;
    filter: grayscale(0%) brightness(1.3) drop-shadow(0 0 4px rgba(255, 215, 0, 0.8)) !important;
}

#fx-toggle-btn:active {
    transform: scale(0.9);
}

/* ===== ESTILOS POR TEMA ===== */
body[data-theme='dark'] #fx-toggle-btn {
    background-color: rgba(41, 90, 153, 0.9);
    border-color: #79afd2;
}

body[data-theme='dark'] #fx-toggle-btn:hover {
    background-color: #79afd2;
    border-color: #a7d8f0;
}

body[data-theme='dark'] #fx-toggle-btn.fx-active {
    background-color: rgba(37, 194, 242, 0.9);
    border-color: #25c2f2;
}

body[data-theme='aurora'] #fx-toggle-btn {
    background: rgba(15, 12, 41, 0.9);
    border-color: rgba(125, 249, 255, 0.5);
}

body[data-theme='aurora'] #fx-toggle-btn:hover {
    background: rgba(32, 25, 67, 0.9);
    border-color: #7df9ff;
}

body[data-theme='aurora'] #fx-toggle-btn.fx-active {
    background: rgba(0, 194, 194, 0.9);
    border-color: #00c2c2;
    box-shadow: 0 4px 12px rgba(0, 194, 194, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #fx-toggle-btn {
        width: 45px;
        height: 45px;
        right: 65px;
        top: 10px;
    }
    
    #fx-toggle-btn .btn-emoji {
        font-size: 20px !important;
    }
}

/* ===== SOBRESCRIBIR BACKGROUND DE ELEMENTOR ===== */
body.respiratron-fx-active .elementor-section,
body.respiratron-fx-active .elementor-container,
body.respiratron-fx-active .elementor-column-wrap,
body.respiratron-fx-active .elementor-widget-wrap {
    background-image: none !important;
    background-color: transparent !important;
}

/* Backgrounds por tema cuando FX está activo */
body[data-theme='light'].respiratron-fx-active {
    background: linear-gradient(180deg,
        #87CEEB 0%,
        #B0E0E6 30%,
        #E0F6FF 60%,
        #B0E0E6 85%,
        #87CEEB 100%) !important;
    background-size: 400% 400% !important;
    animation: respiratronShift 40s ease infinite !important;
}

body[data-theme='dark'].respiratron-fx-active {
    background: linear-gradient(135deg,
        #0a0a1e 0%,
        #1a1a3e 30%,
        #0f0f2e 60%,
        #1a1a3e 85%,
        #0a0a1e 100%) !important;
    background-size: 400% 400% !important;
    animation: respiratronShift 35s ease infinite !important;
}

body[data-theme='aurora'].respiratron-fx-active {
    background: linear-gradient(135deg,
        #001a1a 0%,
        #003d3d 30%,
        #00524d 60%,
        #004d4d 85%,
        #001f1f 100%) !important;
    background-size: 400% 400% !important;
    animation: respiratronShift 45s ease infinite !important;
}

@keyframes respiratronShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== EFECTOS TEMÁTICOS EN EL APP ===== */

/* Light: Sombra de nubes suave */
body[data-theme='light'].respiratron-fx-active .breathing-timer-app {
    box-shadow: 
        0 20px 60px rgba(135, 206, 235, 0.2),
        0 0 40px rgba(255, 255, 255, 0.3);
}

/* Dark: Glow estelar */
body[data-theme='dark'].respiratron-fx-active .breathing-timer-app {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(37, 194, 242, 0.2);
}

/* Aurora: Glow interestelar */
body[data-theme='aurora'].respiratron-fx-active .breathing-timer-app {
    box-shadow: 
        0 20px 60px rgba(0, 77, 77, 0.4),
        0 0 40px rgba(0, 194, 194, 0.3);
}

/* ===== INDICADOR VISUAL (Opcional - puede removerse) ===== */
body.respiratron-fx-active::before {
    content: '✨';
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 30px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 9998;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    body.respiratron-fx-active::before {
        bottom: 15px;
        right: 15px;
        font-size: 24px;
    }
}

