/* Elementor Animated Titles - Styles */

.eat-title {
    margin: 0;
    display: block;
    width: 100%;
    line-height: 1.2;
}

/* Link styles */
a .eat-title,
.eat-title a {
    color: inherit;
    text-decoration: none;
}

a:hover .eat-title {
    opacity: 0.85;
}

.eat-letter {
    display: inline-block;
}

/* ===== PISCAR (Blink) ===== */
.eat-effect-blink {
    animation: eat-blink 1.2s ease-in-out infinite;
}

.eat-speed-slow.eat-effect-blink {
    animation-duration: 2s;
}

.eat-speed-fast.eat-effect-blink {
    animation-duration: 0.6s;
}

@keyframes eat-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

/* ===== DANÇAR (Dance) ===== */
.eat-effect-dance {
    animation: eat-dance 1.5s ease-in-out infinite;
    transform-origin: center bottom;
}

.eat-speed-slow.eat-effect-dance {
    animation-duration: 2.5s;
}

.eat-speed-fast.eat-effect-dance {
    animation-duration: 0.8s;
}

@keyframes eat-dance {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    15% {
        transform: translateY(-12px) rotate(-6deg) scale(1.05);
    }
    30% {
        transform: translateY(0) rotate(6deg) scale(1);
    }
    45% {
        transform: translateY(-8px) rotate(-4deg) scale(1.03);
    }
    60% {
        transform: translateY(0) rotate(4deg) scale(1);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

/* ===== ONDA (Wave) ===== */
.eat-effect-wave .eat-letter {
    animation: eat-wave 1.2s ease-in-out infinite;
    display: inline-block;
}

.eat-speed-slow.eat-effect-wave .eat-letter {
    animation-duration: 2s;
}

.eat-speed-fast.eat-effect-wave .eat-letter {
    animation-duration: 0.7s;
}

@keyframes eat-wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

/* ===== SALTAR (Bounce) ===== */
.eat-effect-bounce .eat-letter {
    animation: eat-bounce 1s ease-in-out infinite;
    display: inline-block;
}

.eat-speed-slow.eat-effect-bounce .eat-letter { animation-duration: 1.8s; }
.eat-speed-fast.eat-effect-bounce .eat-letter { animation-duration: 0.6s; }

@keyframes eat-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== TREMER (Shake) ===== */
.eat-effect-shake {
    animation: eat-shake 0.6s ease-in-out infinite;
}

.eat-speed-slow.eat-effect-shake { animation-duration: 1s; }
.eat-speed-fast.eat-effect-shake { animation-duration: 0.35s; }

@keyframes eat-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ===== PULSAR (Pulse) ===== */
.eat-effect-pulse {
    animation: eat-pulse 1.4s ease-in-out infinite;
}

.eat-speed-slow.eat-effect-pulse { animation-duration: 2.2s; }
.eat-speed-fast.eat-effect-pulse { animation-duration: 0.8s; }

@keyframes eat-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ===== BRILHAR (Glow) ===== */
.eat-effect-glow {
    animation: eat-glow 1.8s ease-in-out infinite;
}

.eat-speed-slow.eat-effect-glow { animation-duration: 2.8s; }
.eat-speed-fast.eat-effect-glow { animation-duration: 1s; }

@keyframes eat-glow {
    0%, 100% {
        text-shadow: 0 0 4px currentColor, 0 0 8px currentColor;
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 12px currentColor, 0 0 24px currentColor, 0 0 36px currentColor;
        opacity: 0.9;
    }
}

/* ===== RODAR (Rotate) ===== */
.eat-effect-rotate {
    animation: eat-rotate 2s linear infinite;
    display: inline-block;
}

.eat-speed-slow.eat-effect-rotate { animation-duration: 3.5s; }
.eat-speed-fast.eat-effect-rotate { animation-duration: 1s; }

@keyframes eat-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== VIRAR (Flip) ===== */
.eat-effect-flip {
    animation: eat-flip 1.6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.eat-speed-slow.eat-effect-flip { animation-duration: 2.5s; }
.eat-speed-fast.eat-effect-flip { animation-duration: 1s; }

@keyframes eat-flip {
    0%, 100% { transform: perspective(400px) rotateY(0deg); }
    50% { transform: perspective(400px) rotateY(180deg); }
}

/* ===== ARCO-ÍRIS (Rainbow) ===== */
.eat-effect-rainbow {
    animation: eat-rainbow 3s linear infinite;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.eat-speed-slow.eat-effect-rainbow { animation-duration: 5s; }
.eat-speed-fast.eat-effect-rainbow { animation-duration: 1.5s; }

@keyframes eat-rainbow {
    to { background-position: 200% center; }
}

/* ===== MÁQUINA DE ESCREVER (Typewriter) ===== */
.eat-effect-typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid currentColor;
    animation: eat-typewriter 4s steps(40, end) infinite, eat-blink-caret 0.75s step-end infinite;
    display: inline-block;
    max-width: 100%;
}

.eat-speed-slow.eat-effect-typewriter { animation-duration: 6s, 0.75s; }
.eat-speed-fast.eat-effect-typewriter { animation-duration: 2.5s, 0.75s; }

@keyframes eat-typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes eat-blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: currentColor; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .eat-effect-blink,
    .eat-effect-dance,
    .eat-effect-wave .eat-letter,
    .eat-effect-bounce .eat-letter,
    .eat-effect-shake,
    .eat-effect-pulse,
    .eat-effect-glow,
    .eat-effect-rotate,
    .eat-effect-flip,
    .eat-effect-rainbow,
    .eat-effect-typewriter {
        animation: none !important;
    }
}

/* Editor preview improvements */
.elementor-editor-active .eat-title {
    min-height: 1em;
}
