/* assets/css/modals.css */

/* --- 1. EFEITOS GERAIS --- */
.bg-scanline {
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5) 51%);
    background-size: 100% 4px;
    animation: scanline 0.2s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* --- 2. LOGO GLITCH (O Passarinho Bugado) --- */
.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.glitch-logo {
    position: relative;
}

/* Cria cópias da imagem para o efeito tremido */
.glitch-logo::before,
.glitch-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/CANINDE-LOGO-2.png'); /* Caminho relativo à pasta CSS */
    background-size: contain;
    background-repeat: no-repeat;
    filter: grayscale(100%) brightness(1.5); /* Deixa a cópia branca/brilhante */
    opacity: 0.8;
}

.glitch-logo::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1; /* Roxo Cyber */
    clip-path: inset(0 0 0 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch-logo::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9; /* Ciano Cyber */
    clip-path: inset(0 0 0 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

/* Animações de recorte aleatório */
@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 1px); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 1px); }
    100% { clip-path: inset(30% 0 20% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -1px); }
    20% { clip-path: inset(30% 0 20% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(1px, -2px); }
    60% { clip-path: inset(20% 0 50% 0); transform: translate(-1px, 1px); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(2px, 1px); }
    100% { clip-path: inset(0% 0 90% 0); transform: translate(-2px, -2px); }
}

/* --- 3. TEXTO GLITCH ("CUIDADO!") --- */
.glitch-text {
    position: relative;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111827; /* Mesma cor do fundo do modal */
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(-2deg); }
    40% { transform: skew(2deg); }
    60% { transform: skew(0deg); }
    80% { transform: skew(-1deg); }
    100% { transform: skew(1deg); }
}

/* --- 4. ANIMAÇÃO SUCESSO --- */
@keyframes bounce-short {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-bounce-short {
    animation: bounce-short 2s infinite;
}