/* ===================================
   Estilos para Ícones e Brasões
   =================================== */

/* Animação Float para os brasões decorativos */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
    75% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Animação Pulse Soft */
@keyframes pulse-soft {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Efeito de brilho nos brasões ao hover em elementos parent */
.player-card:hover ~ .lineup-grid::after,
.card:hover ~ #about::before {
    opacity: 0.08 !important;
    animation: glow 2s ease-in-out infinite;
}

/* Brasão no loading/carregamento */
.loading-brasao {
    width: 80px;
    height: 80px;
    background-image: url('../images/icons/brasao1_semfundo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: rotate 3s linear infinite, pulse-soft 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 209, 255, 0.6));
}

/* Brasão como separador decorativo */
.brasao-divider {
    position: relative;
    text-align: center;
    margin: var(--spacing-2xl) 0;
}

.brasao-divider::before {
    content: '';
    display: inline-block;
    width: 60px;
    height: 60px;
    background-image: url('../images/icons/brasao1_semfundo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    filter: drop-shadow(0 0 10px rgba(0, 209, 255, 0.4));
}

/* Brasão pequeno inline */
.inline-brasao {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/icons/brasao1_semfundo16x16.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin: 0 var(--spacing-xs);
}

/* Brasão no background de cards especiais */
.card-with-brasao {
    position: relative;
}

.card-with-brasao::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    background-image: url('../images/icons/brasao1_semfundo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    transition: all var(--transition-smooth);
}

.card-with-brasao:hover::before {
    opacity: 0.1;
    transform: translateY(-50%) scale(1.1);
}

/* Brasão animado no hero - versão alternativa */
.hero-brasao-animated {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background-image: url('../images/icons/brasao1_semfundo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.03;
    animation: rotate 60s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Efeito de brilho nos ícones */
.icon-glow {
    filter: drop-shadow(0 0 10px rgba(0, 209, 255, 0.5));
    transition: filter var(--transition-base);
}

.icon-glow:hover {
    filter: drop-shadow(0 0 20px rgba(0, 209, 255, 0.8));
}

/* Favicon animado (para navegadores que suportam) */
@keyframes favicon-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Brasão como marca d'água em impressão */
@media print {
    body::after {
        content: '';
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50%;
        height: 50%;
        background-image: url('../images/icons/brasao1_semfundo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.05;
        z-index: -1;
    }
}

/* Responsividade para brasões decorativos */
@media (max-width: 768px) {
    /* Reduz tamanho dos brasões decorativos em mobile */
    .hero::after,
    #about::before,
    #lineup::after,
    #uniformes::before {
        width: 250px !important;
        height: 250px !important;
        opacity: 0.03 !important;
    }
}

@media (max-width: 480px) {
    /* Remove alguns brasões decorativos em telas muito pequenas */
    #lineup::after,
    #uniformes::before {
        display: none;
    }
}

/* Efeito especial para o brasão no hover do footer */
.footer:hover::before {
    opacity: 0.06;
    transform: translate(-50%, -50%) scale(1.1);
    transition: all var(--transition-slow);
}

/* Efeito de scan/varredura no brasão */
@keyframes scan {
    0% {
        clip-path: inset(0 0 100% 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

.brasao-scan {
    animation: scan 2s ease-out;
}

/* Efeito holográfico */
.brasao-holographic {
    position: relative;
}

.brasao-holographic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 209, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
}
