/**
 * WP Pro Quiz - Bouton Futuriste pour Quiz de Révision
 * Version: 3.3.10
 * Style moderne et animé pour le bouton de génération de quiz
 */

/* ============================
   ANIMATIONS
   ============================ */

@keyframes breathe {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 
            0 0 0 0 rgba(59, 130, 246, 0),
            0 10px 40px -10px rgba(59, 130, 246, 0.4),
            inset 0 0 0 1px rgba(59, 130, 246, 0.2),
            inset 0 0 20px rgba(59, 130, 246, 0.05);
    }
    50% {
        transform: scale(1.03) rotate(1deg);
        box-shadow: 
            0 0 0 10px rgba(59, 130, 246, 0.06),
            0 15px 50px -10px rgba(59, 130, 246, 0.5),
            inset 0 0 0 1px rgba(59, 130, 246, 0.3),
            inset 0 0 30px rgba(59, 130, 246, 0.1);
    }
}

@keyframes shimmerWave {
    0% {
        transform: translateX(-100%) skewX(-20deg);
    }
    100% {
        transform: translateX(200%) skewX(-20deg);
    }
}

@keyframes magneticFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) translateX(1px) rotate(0.8deg);
    }
    50% {
        transform: translateY(1px) translateX(-1px) rotate(-0.4deg);
    }
    75% {
        transform: translateY(2px) translateX(0.5px) rotate(0.6deg);
    }
}

@keyframes particleOrbit {
    0% {
        transform: rotate(0deg) translateX(48px) rotate(0deg) scale(0);
        opacity: 0;
        filter: blur(2px);
    }
    10% {
        transform: rotate(36deg) translateX(48px) rotate(-36deg) scale(1);
        opacity: 1;
        filter: blur(0px);
    }
    90% {
        transform: rotate(324deg) translateX(48px) rotate(-324deg) scale(1);
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        transform: rotate(360deg) translateX(48px) rotate(-360deg) scale(0);
        opacity: 0;
        filter: blur(2px);
    }
}

@keyframes iconMorph {
    0%, 100% {
        transform: scale(1) rotateZ(0deg);
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
    }
    25% {
        transform: scale(1.05) rotateZ(2deg);
        filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.7));
    }
    50% {
        transform: scale(1.1) rotateZ(-1deg);
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
    }
    75% {
        transform: scale(1.02) rotateZ(1deg);
        filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.6));
    }
}

@keyframes gradientRotate {
    0% {
        transform: rotate(0deg) scale(1);
        filter: blur(10px);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        filter: blur(8px);
    }
    100% {
        transform: rotate(360deg) scale(1);
        filter: blur(10px);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(59, 130, 246, 0.5),
            0 0 20px rgba(59, 130, 246, 0.3),
            0 0 30px rgba(59, 130, 246, 0.1);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(139, 92, 246, 0.6),
            0 0 25px rgba(139, 92, 246, 0.4),
            0 0 35px rgba(139, 92, 246, 0.2);
    }
}

@keyframes energyFlow {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ============================
   BOUTON CONTAINER
   ============================ */

.wpProQuiz_button_container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}

.wpProQuiz_energy_wave {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.3);
    animation: energyFlow 3s ease-out infinite;
    pointer-events: none;
}

.wpProQuiz_energy_wave:nth-child(2) {
    animation-delay: 1s;
    border-color: rgba(139, 92, 246, 0.3);
}

.wpProQuiz_energy_wave:nth-child(3) {
    animation-delay: 2s;
    border-color: rgba(59, 130, 246, 0.3);
}

/* ============================
   BOUTON PRINCIPAL
   ============================ */

.wpProQuiz_generate_vf_btn {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100px !important;
    height: 100px !important;
    background: 
        radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.2), transparent 60%),
        linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%) !important;
    border-radius: 50% !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    animation: 
        breathe 4s ease-in-out infinite,
        magneticFloat 8s ease-in-out infinite !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    z-index: 10 !important;
    margin: 20px auto !important;
    padding: 0 !important;
}

.wpProQuiz_generate_vf_btn::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 40%;
    height: 40%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

/* Shimmer effect */
.wpProQuiz_shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
}

.wpProQuiz_shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: shimmerWave 6s infinite;
}

/* Gradient ring */
.wpProQuiz_gradient_ring {
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(59, 130, 246, 0.4) 40deg,
        rgba(139, 92, 246, 0.3) 80deg,
        transparent 140deg,
        rgba(236, 72, 153, 0.3) 200deg,
        rgba(59, 130, 246, 0.4) 280deg,
        transparent 360deg
    );
    animation: gradientRotate 10s linear infinite;
    pointer-events: none;
    opacity: 0.7;
}

/* Inner circle */
.wpProQuiz_inner_circle {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 60% 40%, rgba(139, 92, 246, 0.05), transparent 40%),
        radial-gradient(circle at center, #1a1f3a 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 -4px 12px rgba(59, 130, 246, 0.15),
        inset 2px 0 8px rgba(139, 92, 246, 0.1),
        inset -2px 0 8px rgba(59, 130, 246, 0.1);
}

/* Icon and text container */
.wpProQuiz_icon_text_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: relative;
    animation: iconMorph 3s ease-in-out infinite;
}

.wpProQuiz_button_icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    position: relative;
    color: #e2e8f0;
}

.wpProQuiz_button_icon i {
    font-size: 28px !important;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.wpProQuiz_button_text {
    font-size: 9px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 50%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px !important;
    text-align: center !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    animation: textGlow 3s ease-in-out infinite;
    margin: 0 !important;
    padding: 0 !important;
}

/* Orbit particles */
.wpProQuiz_orbit_container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wpProQuiz_orbit_particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #3b82f6, transparent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -2px 0 0 -2px;
    box-shadow: 
        0 0 15px #3b82f6,
        0 0 30px rgba(59, 130, 246, 0.5);
    animation: particleOrbit 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.wpProQuiz_orbit_particle:nth-child(2) {
    animation-delay: 1.25s;
    background: radial-gradient(circle, #8b5cf6, transparent);
    box-shadow: 
        0 0 15px #8b5cf6,
        0 0 30px rgba(139, 92, 246, 0.5);
}

.wpProQuiz_orbit_particle:nth-child(3) {
    animation-delay: 2.5s;
    background: radial-gradient(circle, #ec4899, transparent);
    box-shadow: 
        0 0 15px #ec4899,
        0 0 30px rgba(236, 72, 153, 0.5);
}

.wpProQuiz_orbit_particle:nth-child(4) {
    animation-delay: 3.75s;
    background: radial-gradient(circle, #3b82f6, transparent);
    box-shadow: 
        0 0 15px #3b82f6,
        0 0 30px rgba(59, 130, 246, 0.5);
}

/* ============================
   HOVER STATES
   ============================ */

.wpProQuiz_generate_vf_btn:hover {
    transform: scale(1.1) rotate(-3deg) !important;
    background: 
        radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.3), transparent 60%),
        linear-gradient(135deg, #334155 0%, #475569 50%, #334155 100%) !important;
    box-shadow: 
        0 0 0 15px rgba(59, 130, 246, 0.08),
        0 20px 60px -10px rgba(59, 130, 246, 0.6),
        inset 0 0 0 1px rgba(59, 130, 246, 0.5),
        inset 0 0 40px rgba(59, 130, 246, 0.15) !important;
}

.wpProQuiz_generate_vf_btn:hover .wpProQuiz_gradient_ring {
    opacity: 1;
    animation-duration: 3s;
}

.wpProQuiz_generate_vf_btn:hover .wpProQuiz_orbit_particle {
    animation-duration: 3s;
}

.wpProQuiz_generate_vf_btn:hover .wpProQuiz_button_icon i {
    background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 50%, #fbcfe8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpProQuiz_generate_vf_btn:active {
    transform: scale(0.95) rotate(0deg) !important;
}

/* ============================
   MOBILE RESPONSIVE
   ============================ */

@media screen and (max-width: 600px) {
    .wpProQuiz_generate_vf_btn {
        width: 90px !important;
        height: 90px !important;
    }
    
    .wpProQuiz_button_container {
        width: 110px;
        height: 110px;
    }
    
    .wpProQuiz_button_icon {
        width: 28px;
        height: 28px;
    }
    
    .wpProQuiz_button_icon i {
        font-size: 24px !important;
    }
}
