/* glitchzone.css - Promo GlitchZone con effetto glitch */

.gz-promo {
    position: fixed;
    bottom: 84px; /* sopra la fascia footer: a 24px copriva il copyright (collaudo 10 giu) */
    left: 24px;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    padding: 8px 8px 0 0;
}

.gz-promo.visible {
    pointer-events: auto;
    animation: gzAppear 0.8s steps(1) forwards;
}

.gz-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: #0a0a12;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 255, 136, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.gz-link:hover {
    box-shadow: 0 4px 24px rgba(0, 255, 136, 0.15), 0 0 0 1px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.gz-link:hover .gz-logo {
    animation: glitch 0.3s steps(2) 1;
}

.gz-link::after {
    /* Riservato per eventuali estensioni */
}

.gz-logo {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #00ff88;
    letter-spacing: -0.02em;
    line-height: 1;
}

.gz-accent {
    color: #ff0080;
}

.gz-text {
    font-size: 0.6875rem;
    color: #b0b0c8;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.gz-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gray-700);
    color: var(--gray-300);
    border: 2px solid #0a0a12;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s;
    z-index: 1;
}

.gz-close:hover {
    background: var(--gray-600);
}

@keyframes gzAppear {
    0%   { opacity: 1; clip-path: inset(40% 0 60% 0); transform: translate(-3px, 2px) skewX(-2deg); }
    8%   { opacity: 0; clip-path: inset(0); transform: translate(0); }
    15%  { opacity: 1; clip-path: inset(10% 0 85% 0); transform: translate(4px, -1px) skewX(3deg); }
    22%  { opacity: 0; clip-path: inset(0); transform: translate(0); }
    30%  { opacity: 1; clip-path: inset(60% 0 5% 0); transform: translate(-2px, 3px) skewX(-1deg); }
    38%  { opacity: 0; clip-path: inset(0); transform: translate(0); }
    50%  { opacity: 1; clip-path: inset(20% 0 30% 0); transform: translate(2px, -2px); }
    58%  { opacity: 0; }
    68%  { opacity: 1; clip-path: inset(5% 0 5% 0); transform: translate(-1px, 1px); }
    75%  { opacity: 0.6; clip-path: inset(0); transform: translate(1px, 0); }
    85%  { opacity: 1; clip-path: inset(0); transform: translate(0); }
    90%  { opacity: 0.8; transform: translate(-1px, 0); }
    100% { opacity: 1; clip-path: inset(0); transform: translate(0); }
}

@keyframes glitch {
    0%   { text-shadow: 2px 0 #ff0080, -2px 0 #00ff88; }
    25%  { text-shadow: -1px 1px #ff0080, 1px -1px #00ff88; }
    50%  { text-shadow: 1px -1px #ff0080, -1px 1px #00ff88; }
    100% { text-shadow: none; }
}

/* Mobile */
@media (max-width: 768px) {
    .gz-promo {
        bottom: 148px;
        left: 16px;
    }
}
