/* ===== ANIMAÇÃO DE CADEADOS CAINDO ===== */
.security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.falling-locks {
    position: relative;
    width: 100%;
    height: 100%;
}

.falling-locks::before,
.falling-locks::after {
    content: "🔒";
    position: absolute;
    font-size: 24px;
    opacity: 0.15;
    animation: fall linear infinite;
}

.falling-locks::before {
    left: 10%;
    animation-duration: 15s;
    animation-delay: -2s;
}

.falling-locks::after {
    left: 30%;
    animation-duration: 12s;
    animation-delay: -5s;
}

/* Múltiplos cadeados com pseudo-elementos */
.falling-locks {
    & span {
        position: absolute;
        font-size: 20px;
        opacity: 0.1;
        animation: fall linear infinite;
    }
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0.1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.1;
    }
}

/* Gerar múltiplos cadeados via JavaScript */
.lock {
    position: absolute;
    font-size: 20px;
    opacity: 0.1;
    animation: fall linear infinite;
    user-select: none;
    pointer-events: none;
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slideInLeft {
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slideInRight {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoomIn {
    animation: zoomIn 0.5s ease forwards;
}

@keyframes flipIn {
    from {
        transform: perspective(400px) rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateY(0);
        opacity: 1;
    }
}

.flipIn {
    animation: flipIn 0.8s ease forwards;
}

/* ===== ANIMAÇÕES DE HOVER ===== */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px var(--primary-gold);
}

/* ===== ANIMAÇÕES DE CARREGAMENTO ===== */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.pulse-gold {
    animation: pulse-gold 1.5s infinite;
}

/* ===== ANIMAÇÕES DE TRANSIÇÃO ===== */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== ANIMAÇÕES DE SCROLL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ANIMAÇÕES DE BACKGROUND ===== */
.gradient-animation {
    background: linear-gradient(270deg, var(--primary-dark-blue), var(--primary-black), var(--primary-gold));
    background-size: 600% 600%;
    animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== ANIMAÇÕES DE TEXTO ===== */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(40, end);
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.blink {
    animation: blink 1s step-end infinite;
}

/* ===== ANIMAÇÕES DE NOTIFICAÇÃO ===== */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification {
    animation: slideInDown 0.5s ease forwards;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.8s ease;
}

/* ===== ANIMAÇÕES DE BOTÃO ===== */
.btn-pulse {
    position: relative;
    overflow: hidden;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-pulse:active::after {
    width: 300px;
    height: 300px;
}

/* ===== ANIMAÇÕES DE CARD ===== */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    20% {
        transform: translateX(100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ===== ANIMAÇÕES DE MENU ===== */
.menu-item-hover {
    position: relative;
}

.menu-item-hover::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.menu-item-hover:hover::before {
    width: 100%;
}

/* ===== ANIMAÇÕES DE IMAGEM ===== */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

.img-rotate {
    transition: transform 0.5s ease;
}

.img-rotate:hover {
    transform: rotate(5deg) scale(1.1);
}

/* ===== ANIMAÇÕES DE CARREGAMENTO PWA ===== */
.pwa-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pwa-loader.show {
    opacity: 1;
    visibility: visible;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
}