/* "Deep Aerospace" Design System - Performance Optimized */

:root {
    /* Backgrounds: Cool, Deep, Professional */
    --color-bg-deep: #020408; /* Almost Black Blue */
    --color-bg-dark: #0B1121; /* Deep Navy */
    --color-bg-surface: #151e32; /* Lighter Navy for cards */
    
    /* Accents: Electric Blue & Titanium */
    --color-primary: #3b82f6; /* Blue 500 */
    --color-primary-dim: rgba(59, 130, 246, 0.1);
    --color-secondary: #64748b; /* Slate 500 */
    
    /* Text: Crisp & Clean */
    --color-text-main: #f8fafc; /* Slate 50 */
    --color-text-muted: #94a3b8; /* Slate 400 */
    --color-text-sub: #475569;  /* Slate 600 */
    
    /* Borders */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(59, 130, 246, 0.3);
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Performance: Remove complex gradients, use solid color with Three.js overlay */
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar - Sleek & Minimal */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-deep); 
}
::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary); 
}

/* --- PERFORMANCE OPTIMIZED COMPONENTS --- */

/* Navigation: High blur only here where needed */
.glass-panel {
    background: rgba(2, 4, 8, 0.85);
    backdrop-filter: blur(12px); /* Reduced form 16px */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Content Cards: Low cost rendering */
/* Replaced heavy blur with solid opacity + refined borders */
.glass-card {
    background: rgba(15, 23, 42, 0.6); /* Increased opacity, reduced transparency */
    /* backdrop-filter: blur(8px); removed for performance */
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.2s ease-out;
    position: relative;
    overflow: hidden;
}

/* Subtle interactions instead of heavy glows */
.glass-card:hover {
    background: rgba(20, 30, 50, 0.8);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); 
}

/* Inputs: Clean & Technical */
.glass-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    color: var(--color-text-main);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--color-primary-dim); /* Cheaper than blur shadow */
}

/* Text Gradients: Metallic & Blue instead of Rainbow */
.text-gradient {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #60a5fa 0%, #a8a29e 100%); /* Blue to Silver */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); } /* Reduced movement */
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 8s ease-in-out infinite; /* Slower animation */
}

@keyframes scale-in {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.animate-scale-in {
    animation: scale-in 0.2s ease-out forwards;
}

/* Utility overrides */
.font-mono {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.03em;
}

/* Refined Text Shadows (Cheaper than Box Shadows) */
.text-shadow-blue {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Loader */
.loader-spinner {
    border-top-color: var(--color-text-main);
    border-left-color: var(--color-primary);
}

/* Layout Helpers */
nav { z-index: 50; }
.modal-overlay { z-index: 100; }
.content-layer { position: relative; z-index: 10; }

/* Specialized Market Grid Gap */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
