/* =============================================
   EFFECTS — Cursor, Noise Canvas, Glitch, Keyframes
   Loaded on every page.
   ============================================= */

/* --- CUSTOM CURSOR (crosshair reticle) --- */
.cursor {
    width: 20px; height: 20px;
    border: 2px solid var(--kelly-green);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.08s;
    transform-origin: center;
    background: transparent;
    box-shadow: 0 0 8px rgba(76,187,23,0.35);
}

.cursor-cross-h,
.cursor-cross-v {
    position: absolute;
    background: var(--kelly-green);
    top: 50%; left: 50%;
    opacity: 0.55;
    pointer-events: none;
}

.cursor-cross-h {
    width: 44px; height: 1px;
    transform: translate(-50%, -50%);
}

.cursor-cross-v {
    width: 1px; height: 44px;
    transform: translate(-50%, -50%);
}

.cursor-coords {
    position: absolute;
    top: 18px; left: 18px;
    font-family: monospace;
    font-size: 0.52rem;
    color: var(--kelly-green);
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0.65;
    line-height: 1;
    pointer-events: none;
}

/* --- CURSOR TRAIL --- */
.cursor-trail {
    position: fixed;
    border-radius: 50%;
    background: var(--kelly-green);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    will-change: left, top, opacity;
}

/* --- NOISE OVERLAY --- */
#noise-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.08;
}

/* --- GLITCH EFFECT --- */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #cc00ff;
    clip-path: inset(15% 0 60% 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00ccff;
    clip-path: inset(60% 0 10% 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

/* --- GLOBAL KEYFRAMES --- */
@keyframes glitch-anim {
    0%   { clip-path: inset(15% 0 68% 0); }
    20%  { clip-path: inset(2% 0 62% 0);  }
    40%  { clip-path: inset(23% 0 6% 0);  }
    60%  { clip-path: inset(38% 0 1% 0);  }
    80%  { clip-path: inset(8% 0 20% 0);  }
    100% { clip-path: inset(33% 0 25% 0); }
}

@keyframes glitch-anim2 {
    0%   { clip-path: inset(2% 0 34% 0);  }
    20%  { clip-path: inset(36% 0 3% 0);  }
    40%  { clip-path: inset(4% 0 26% 0);  }
    60%  { clip-path: inset(11% 0 26% 0); }
    80%  { clip-path: inset(31% 0 36% 0); }
    100% { clip-path: inset(2% 0 6% 0);   }
}

@keyframes title-glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
}

@keyframes glitch-1 {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    92% { opacity: 0.7; transform: translate(-3px, 0); }
    94% { opacity: 0; }
}

@keyframes glitch-2 {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    93% { opacity: 0.7; transform: translate(3px, 0); }
    95% { opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(76,187,23,0.4), 0 0 40px rgba(76,187,23,0.2), 0 10px 30px rgba(0,0,0,0.8);
    }
    50% {
        box-shadow: 0 0 40px rgba(76,187,23,0.8), 0 0 80px rgba(76,187,23,0.4), 0 10px 30px rgba(0,0,0,0.8);
    }
}

@keyframes border-glow {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

@keyframes pulse-num {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

@keyframes btn-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(76,187,23,0.5); }
    50%       { box-shadow: 0 0 25px rgba(76,187,23,0.8), 0 0 50px rgba(76,187,23,0.4); }
}

/* --- PAGE ENTRANCE --- */
@keyframes page-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* --- OUT-NOW BADGE (shown on all pages during 48hr post-release window) --- */
.release-now-badge {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--kelly-green);
    color: var(--black);
    font-family: 'Arial Black', sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 11px 20px;
    z-index: 9990;
    text-decoration: none;
    border: 2px solid var(--black);
    animation: badge-pulse 2s ease-in-out infinite;
    cursor: none;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(76,187,23,0.7), 0 0 0 0 rgba(76,187,23,0.4); }
    50%       { box-shadow: 0 0 30px rgba(76,187,23,1),   0 0 0 8px rgba(76,187,23,0); }
}

@media (max-width: 480px) {
    .release-now-badge {
        bottom: 14px;
        right: 14px;
        font-size: 0.62rem;
        padding: 8px 14px;
    }
}
