/*
╔═══════════════════════════════════════════════════════════════╗
║         NEURAL VENCORD THEME - Cyberpunk Iridescent           ║
║                    By Neural CSS Engine Pro                    ║
╚═══════════════════════════════════════════════════════════════╝

INSTALLATION:
1. Install Neural CSS Engine Pro browser extension
2. Copy this entire CSS
3. In Discord, User Settings > Themes > CSS Editor (Vencord)
4. Paste and apply!

EFFECTS USED:
• Iridescent color shifting (7 colors)
• Path tracing radial glow  
• Morphing dual-background parallax
• Fresnel edge glow
• Mouse-reactive animations
• Animated gradients

*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ================================================================
   NEURAL CSS ENGINE - CORE CLASSES
   ================================================================ */

/* Main theme class - activates neural engine */
.neural-discord-theme {
    --neural-enabled: true;
    --neural-iridescent: true;
    --neural-iridescent-strength: 0.7;
    --neural-overlay-opacity: 0.15;
    --neural-morph-strength: 0.4;
    --neural-fresnel-power: 4.0;
    --neural-path-trace: true;
    --neural-path-trace-samples: 6;
    --neural-animation-speed: 8s;
    
    /* Iridescent 7-color palette */
    --neural-iri-1: #ff0080;  /* Hot pink */
    --neural-iri-2: #00ffff;  /* Cyan */
    --neural-iri-3: #8000ff;  /* Purple */
    --neural-iri-4: #ffff00;  /* Yellow */
    --neural-iri-5: #00ff80;  /* Mint */
    --neural-iri-6: #ff8000;  /* Orange */
    --neural-iri-7: #0080ff;  /* Blue */
    
    /* Morph backgrounds - REPLACE WITH YOUR IMAGES */
    --neural-bg-1: url('https://i.imgur.com/cyberpunk1.jpg');
    --neural-bg-2: url('https://i.imgur.com/cyberpunk2.jpg');
    
    /* Custom cursor glow */
    --neural-cursor-glow: true;
    --neural-cursor-color: #00ffff;
}

/* Iridescent overlay for full app */
.neural-vencord-iridescent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--neural-overlay-opacity, 0.15);
    background: 
        radial-gradient(ellipse at 20% 30%, var(--neural-iri-1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, var(--neural-iri-2) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, var(--neural-iri-3) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, var(--neural-iri-4) 0%, transparent 50%);
    mix-blend-mode: screen;
    animation: neuralIridescentShift 8s ease-in-out infinite;
}

@keyframes neuralIridescentShift {
    0%, 100% {
        filter: hue-rotate(0deg) saturate(1.2);
        transform: scale(1);
    }
    25% {
        filter: hue-rotate(45deg) saturate(1.4);
        transform: scale(1.02);
    }
    50% {
        filter: hue-rotate(90deg) saturate(1.3);
        transform: scale(1);
    }
    75% {
        filter: hue-rotate(135deg) saturate(1.4);
        transform: scale(1.01);
    }
}

/* Path tracing glow effect */
.neural-vencord-pathtrace {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.12;
    background: 
        radial-gradient(circle at 30% 40%, var(--neural-iri-5) 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, var(--neural-iri-6) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, var(--neural-iri-7) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, var(--neural-iri-1) 0%, transparent 20%),
        radial-gradient(circle at 80% 20%, var(--neural-iri-2) 0%, transparent 25%);
    mix-blend-mode: add;
    animation: neuralPathTrace 6s ease-in-out infinite;
}

@keyframes neuralPathTrace {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.12;
    }
    33% {
        transform: scale(1.1) rotate(2deg);
        opacity: 0.18;
    }
    66% {
        transform: scale(0.95) rotate(-1deg);
        opacity: 0.1;
    }
}

/* Fresnel edge glow */
.neural-vencord-fresnel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.08;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 40%,
        var(--neural-iri-1) 45%,
        var(--neural-iri-2) 50%,
        var(--neural-iri-3) 55%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: neuralFresnel 4s linear infinite;
}

@keyframes neuralFresnel {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

/* Morphing background parallax */
.neural-vencord-morph {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120vw;
    height: 120vh;
    pointer-events: none;
    z-index: 9996;
    opacity: 0.3;
    background: 
        var(--neural-bg-1, linear-gradient(135deg, #1a0033 0%, #00001a 100%'));
    background-size: cover;
    animation: neuralMorph1 12s ease-in-out infinite;
    transition: transform 0.3s ease-out;
}

.neural-vencord-morph-2 {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110vw;
    height: 110vh;
    pointer-events: none;
    z-index: 9995;
    opacity: 0.25;
    background: 
        var(--neural-bg-2, linear-gradient(225deg, #00001a 0%, #1a0033 100%'));
    background-size: cover;
    animation: neuralMorph2 15s ease-in-out infinite reverse;
    mix-blend-mode: screen;
}

@keyframes neuralMorph1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(2%, 1%) scale(1.02); }
    50% { transform: translate(1%, 2%) scale(1); }
    75% { transform: translate(-1%, 1%) scale(1.01); }
}

@keyframes neuralMorph2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-2%, -1%) scale(1.03); }
    66% { transform: translate(1%, -2%) scale(0.98); }
}

/* Mouse cursor reactive glow */
.neural-cursor-trail {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    background: radial-gradient(
        circle,
        var(--neural-cursor-color, #00ffff) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    mix-blend-mode: screen;
}

body:hover .neural-cursor-trail {
    opacity: 0.15;
}

/* Animated scanlines */
.neural-vencord-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99994;
    opacity: 0.03;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.1) 2px,
        rgba(0, 255, 255, 0.1) 4px
    );
    animation: neuralScanline 0.1s linear infinite;
}

@keyframes neuralScanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Grid overlay */
.neural-vencord-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99993;
    opacity: 0.05;
    background-image: 
        linear-gradient(var(--neural-iri-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--neural-iri-2) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: neuralGridMove 20s linear infinite;
}

@keyframes neuralGridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* ================================================================
   DISCORD ELEMENT OVERLAYS
   ================================================================ */

/* Server sidebar glow */
.neural-sidebar {
    position: relative;
}

.neural-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--neural-iri-1) 0%,
        transparent 30%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
}

.neural-sidebar:hover::before {
    opacity: 0.1;
}

/* Channel/category hover iridescence */
.neural-channel {
    position: relative;
    overflow: hidden;
}

.neural-channel::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--neural-iri-1),
        var(--neural-iri-2),
        var(--neural-iri-3),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    animation: neuralChannelSpin 4s linear infinite;
}

.neural-channel:hover::after {
    opacity: 0.1;
}

@keyframes neuralChannelSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message input glow */
.neural-input {
    position: relative;
}

.neural-input::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--neural-iri-5),
        var(--neural-iri-2),
        transparent
    );
    animation: neuralInputPulse 2s ease-in-out infinite;
}

@keyframes neuralInputPulse {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 0.8; transform: scaleX(1); }
}

/* Voice/Video call glow */
.neural-call {
    position: relative;
}

.neural-call::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    background: linear-gradient(
        var(--neural-iri-1), var(--neural-iri-2), var(--neural-iri-3)
    ) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: neuralCallBorder 3s linear infinite;
    opacity: 0.5;
}

@keyframes neuralCallBorder {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ================================================================
   DISCORD BASE OVERRIDES (Customize these)
   ================================================================ */

[class*="appMount"] {
    background: linear-gradient(
        135deg,
        rgba(10, 0, 20, 0.95) 0%,
        rgba(0, 10, 20, 0.95) 50%,
        rgba(20, 0, 10, 0.95) 100%
    ) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neural-iri-1), var(--neural-iri-2));
    border-radius: 4px;
}

/* User status indicators */
[ class*="status"] {
    box-shadow: 0 0 10px currentColor;
}

/* Mention highlight */
[class*="mention"] {
    background: linear-gradient(
        135deg,
        rgba(255, 0, 128, 0.2),
        rgba(0, 255, 255, 0.2)
    ) !important;
    border: 1px solid rgba(255, 0, 128, 0.3);
}

/* ================================================================
   TOGGLE INSTRUCTIONS
   ================================================================

   This theme activates when .neural-discord-theme is added to body.
   The Neural CSS Engine extension handles this automatically.
   
   To manually toggle:
   1. Open browser console (F12)
   2. Run: document.body.classList.toggle('neural-discord-theme')
   
   Or use the extension popup!

   ================================================================ */
