/* ============================================
   REONE NEXUS - FUTURISTIC DESIGN SYSTEM
   Ultra-Modern, Elegant & Futuristic UI
   ============================================ */

/* ==================== VARIABLES ==================== */
:root {
    /* Core Colors - Cyberpunk Elegance */
    --nexus-primary: #6366f1;
    --nexus-primary-dark: #4f46e5;
    --nexus-primary-light: #818cf8;
    
    --nexus-secondary: #8b5cf6;
    --nexus-accent: #ec4899;
    --nexus-success: #10b981;
    --nexus-warning: #f59e0b;
    --nexus-danger: #ef4444;
    --nexus-info: #06b6d4;
    
    /* Backgrounds - Dark Mode Premium */
    --nexus-bg-primary: #0a0a0f;
    --nexus-bg-secondary: #131318;
    --nexus-bg-tertiary: #1c1c24;
    --nexus-bg-elevated: #252530;
    
    /* Glass Effect */
    --nexus-glass: rgba(255, 255, 255, 0.05);
    --nexus-glass-border: rgba(255, 255, 255, 0.1);
    --nexus-glass-hover: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --nexus-text-primary: #ffffff;
    --nexus-text-secondary: rgba(255, 255, 255, 0.7);
    --nexus-text-tertiary: rgba(255, 255, 255, 0.5);
    --nexus-text-muted: rgba(255, 255, 255, 0.3);
    
    /* Neon Glows */
    --nexus-glow-primary: 0 0 20px rgba(99, 102, 241, 0.5);
    --nexus-glow-accent: 0 0 20px rgba(236, 72, 153, 0.5);
    --nexus-glow-success: 0 0 20px rgba(16, 185, 129, 0.5);
    
    /* Spacing */
    --nexus-space-xs: 4px;
    --nexus-space-sm: 8px;
    --nexus-space-md: 16px;
    --nexus-space-lg: 24px;
    --nexus-space-xl: 32px;
    --nexus-space-2xl: 48px;
    
    /* Border Radius */
    --nexus-radius-sm: 8px;
    --nexus-radius-md: 12px;
    --nexus-radius-lg: 16px;
    --nexus-radius-xl: 24px;
    --nexus-radius-full: 9999px;
    
    /* Shadows */
    --nexus-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --nexus-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --nexus-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --nexus-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
    
    /* Transitions */
    --nexus-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --nexus-transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --nexus-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index */
    --nexus-z-base: 1;
    --nexus-z-elevated: 10;
    --nexus-z-modal: 100;
    --nexus-z-toast: 1000;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--nexus-bg-primary);
    color: var(--nexus-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Background Pattern - Subtle Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ==================== GLASSMORPHISM ==================== */
.glass {
    background: var(--nexus-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--nexus-glass-border);
}

.glass-hover {
    transition: all var(--nexus-transition-base);
}

.glass-hover:hover {
    background: var(--nexus-glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ==================== GRADIENTS ==================== */
.gradient-primary {
    background: linear-gradient(135deg, var(--nexus-primary), var(--nexus-secondary));
}

.gradient-accent {
    background: linear-gradient(135deg, var(--nexus-accent), var(--nexus-primary));
}

.gradient-success {
    background: linear-gradient(135deg, var(--nexus-success), #059669);
}

.gradient-mesh {
    background: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.2) 0px, transparent 50%);
}

/* ==================== NEON EFFECTS ==================== */
.neon-border {
    position: relative;
    border: 1px solid transparent;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--nexus-primary), var(--nexus-accent), var(--nexus-secondary));
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(4px);
}

.neon-glow {
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: var(--nexus-glow-primary);
        filter: brightness(1);
    }
    50% {
        box-shadow: var(--nexus-glow-primary), 0 0 40px rgba(99, 102, 241, 0.3);
        filter: brightness(1.1);
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--nexus-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--nexus-glass);
    border-radius: var(--nexus-radius-full);
    border: 2px solid var(--nexus-bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--nexus-glass-hover);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==================== UTILITY CLASSES ==================== */
.fade-in {
    animation: fadeIn var(--nexus-transition-base) ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft var(--nexus-transition-base) ease-out forwards;
}

.slide-in-right {
    animation: slideInRight var(--nexus-transition-base) ease-out forwards;
}

.scale-in {
    animation: scaleIn var(--nexus-transition-base) ease-out forwards;
}

.hover-lift {
    transition: transform var(--nexus-transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-glow {
    transition: all var(--nexus-transition-base);
}

.hover-glow:hover {
    box-shadow: var(--nexus-glow-primary);
}

/* ==================== TEXT ==================== */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--nexus-primary), var(--nexus-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--nexus-accent), var(--nexus-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== LOADING ==================== */
.nexus-loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--nexus-glass);
    border-top-color: var(--nexus-primary);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--nexus-glass) 0%,
        var(--nexus-glass-hover) 50%,
        var(--nexus-glass) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--nexus-radius-sm);
}

/* ==================== BLUR OVERLAY ==================== */
.blur-overlay {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
}

/* ==================== SELECTION ==================== */
::selection {
    background: var(--nexus-primary);
    color: white;
}

::-moz-selection {
    background: var(--nexus-primary);
    color: white;
}

/* ==================== FOCUS STATES ==================== */
:focus-visible {
    outline: 2px solid var(--nexus-primary);
    outline-offset: 2px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    :root {
        --nexus-space-lg: 16px;
        --nexus-space-xl: 24px;
        --nexus-space-2xl: 32px;
    }
}

/* ==================== PRINT ==================== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .glass,
    .neon-border,
    .gradient-mesh {
        background: white !important;
        border: 1px solid #ccc !important;
    }
}





