/* ============================================
   VIBE BUTTONS
   ============================================ */
.btn-vibe {
    position: relative;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(128, 0, 255, 0.4);
    border-radius: 6px;
    background: rgba(10, 8, 25, 0.8);
    color: #d0d0e0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-vibe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
}

.btn-vibe:hover::before {
    left: 100%;
}

.btn-vibe-pulse {
    border-color: rgba(0, 255, 255, 0.4);
}

.btn-vibe-pulse:hover {
    border-color: rgba(0, 255, 255, 0.8);
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.25), inset 0 0 15px rgba(0, 255, 255, 0.05);
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
}

.btn-vibe-spectrum {
    border-color: rgba(255, 0, 128, 0.4);
}

.btn-vibe-spectrum:hover {
    border-color: rgba(255, 0, 128, 0.8);
    color: #ff0080;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.25), inset 0 0 15px rgba(255, 0, 128, 0.05);
    text-shadow: 0 0 6px rgba(255, 0, 128, 0.4);
}

/* ============================================
   VIBE: PULSE THE WEB
   ============================================ */
body.vibe-pulse #canvas-container {
    animation: vibe-pulse-saturate 2s ease-out;
}

@keyframes vibe-pulse-saturate {
    0% { filter: saturate(1) brightness(1); }
    20% { filter: saturate(2.5) brightness(1.6); }
    100% { filter: saturate(1) brightness(1); }
}

/* ============================================
   VIBE: SHIFT SPECTRUM
   Target children instead of body to avoid
   CSS filter breaking the WebGL canvas.
   ============================================ */
body.vibe-spectrum #canvas-container,
body.vibe-spectrum .content-wrapper,
body.vibe-spectrum .site-nav {
    animation: vibe-spectrum-shift 4s linear forwards;
}

body.vibe-spectrum .crystal-panel::before {
    animation: rgb-border 1s linear infinite;
}

@keyframes vibe-spectrum-shift {
    0% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(90deg) saturate(1.3); }
    50% { filter: hue-rotate(180deg) saturate(1.5); }
    75% { filter: hue-rotate(270deg) saturate(1.3); }
    100% { filter: hue-rotate(360deg) saturate(1); }
}
