/* ===========================
   Pixel Explosion Effect - Brutalist Style
   =========================== */

/* Button container for pixel effects */
.btn {
    position: relative;
    overflow: visible;
}

/* Pixel explosion animation on hover */
.btn:hover::before,
.btn:hover::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    animation: pixel-explode 0.6s ease-out forwards;
    pointer-events: none;
}

.btn:hover::before {
    top: 50%;
    left: -10px;
    animation-delay: 0s;
}

.btn:hover::after {
    top: 50%;
    right: -10px;
    animation-delay: 0.1s;
}

/* Pixel explosion keyframes */
@keyframes pixel-explode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Different pixel variations for buttons */
.btn-primary:hover::before {
    --tx: -20px;
    --ty: -15px;
    background-color: #9B111E;
}
.btn-primary:hover::after {
    --tx: 20px;
    --ty: -15px;
    background-color: #9B111E;
}

.btn-secondary:hover::before {
    --tx: -15px;
    --ty: -20px;
    background-color: #0a0a0a;
}
.btn-secondary:hover::after {
    --tx: 15px;
    --ty: -20px;
    background-color: #0a0a0a;
}

.btn-outline:hover::before {
    --tx: -18px;
    --ty: -12px;
    background-color: #9B111E;
}
.btn-outline:hover::after {
    --tx: 18px;
    --ty: -12px;
    background-color: #9B111E;
}

/* Cookie button pixels */
.cookie-btn:hover::before,
.cookie-btn:hover::after {
    width: 6px;
    height: 6px;
}

.cookie-btn-primary:hover::before {
    --tx: -25px;
    --ty: -10px;
    background-color: #9B111E;
}
.cookie-btn-primary:hover::after {
    --tx: 25px;
    --ty: -10px;
    background-color: #9B111E;
}

/* Nav CTA button pixels */
.nav-cta:hover::before,
.nav-cta:hover::after {
    width: 6px;
    height: 6px;
}

.nav-cta:hover::before {
    --tx: -15px;
    --ty: -15px;
    background-color: #9B111E;
}
.nav-cta:hover::after {
    --tx: 15px;
    --ty: 15px;
    background-color: #9B111E;
}
