/* ==================================================
   CYBER LUX THEME - Global Design System Variables
   AI Agent Marketplace - Blazor WebAssembly UI
   ================================================== */

:root {
    /* ===== Core Colors (Solana-Inspired Palette) ===== */
    --color-primary: #14F195;           /* Solana Green - Execute buttons, success */
    --color-secondary: #9945FF;         /* Solana Purple - Brand accent */
    --color-tertiary: #00D4AA;          /* Solana Teal - Processing states */
    --color-info: #19FB9B;              /* Light Cyan - Info, links */
    
    /* Status Colors */
    --status-queued: #FFB84D;           /* Orange - Queued executions */
    --status-processing: #00D4AA;       /* Teal - Processing with pulse */
    --status-completed: #14F195;        /* Green - Successful completion */
    --status-failed: #FF4444;           /* Red - Failed executions */
    --status-cancelled: #94A3B8;        /* Gray - Cancelled */
    
    /* Background Colors */
    --bg-primary: #0D0D0D;              /* Deep Black - Main background */
    --bg-secondary: #1a1a2e;            /* Dark Navy - Cards, surfaces */
    --bg-tertiary: #16213e;             /* Slate Blue - Elevated surfaces */
    --bg-glass: rgba(255, 255, 255, 0.05);  /* Glass morphism overlay */
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    
    /* Border Colors */
    --border-primary: rgba(20, 241, 149, 0.2);   /* Primary border with opacity */
    --border-secondary: rgba(153, 69, 255, 0.2); /* Secondary border */
    --border-subtle: rgba(255, 255, 255, 0.1);   /* Subtle borders */
    --border-emphasis: rgba(20, 241, 149, 0.5);  /* Strong primary border */
    
    /* Text Colors */
    --text-primary: #FFFFFF;            /* White - Main text */
    --text-secondary: #94A3B8;          /* Slate Gray - Secondary text */
    --text-tertiary: #64748B;           /* Dark Slate - Muted text */
    --text-disabled: #475569;           /* Darker Slate - Disabled */
    --text-inverse: #0D0D0D;            /* Black text on light backgrounds */
    --text-success: #14F195;            /* Green text for success */
    
    /* ===== Shadows & Glows ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    --shadow-glow-primary: 0 0 20px rgba(20, 241, 149, 0.3), 0 0 40px rgba(20, 241, 149, 0.15), 0 0 60px rgba(20, 241, 149, 0.05);
    --shadow-glow-secondary: 0 0 20px rgba(153, 69, 255, 0.3), 0 0 40px rgba(153, 69, 255, 0.15), 0 0 60px rgba(153, 69, 255, 0.05);
    
    /* ===== Spacing Scale ===== */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* ===== Border Radius ===== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* ===== Typography ===== */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* ===== Transitions ===== */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* ===== Z-Index Scale ===== */
    --z-dropdown: 1000;
    --z-sticky: 1010;
    --z-fixed: 1020;
    --z-modal-backdrop: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-toast: 1060;
    --z-tooltip: 1070;
}

/* ==================================================
   GLOBAL BASE STYLES
   ================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

a {
    color: var(--color-info);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-tertiary);
}

/* ==================================================
   UTILITY CLASSES
   ================================================== */

.text-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
}

.glow-primary {
    box-shadow: var(--shadow-glow-primary);
}

.glow-secondary {
    box-shadow: var(--shadow-glow-secondary);
}

.neon-border {
    border: 1px solid var(--border-primary);
    box-shadow: 0 0 10px rgba(20, 241, 149, 0.2);
}

.neon-border:hover {
    border-color: var(--border-emphasis);
    box-shadow: var(--shadow-glow-primary);
}
