/* ==========================================================================
   NexTree Trade — Core Style Architecture
   Global Trade Operations & Supply Chain Infrastructure
   ========================================================================== */

:root {
  --color-brand-primary: #06b6d4;      /* Cyan 500 */
  --color-brand-secondary: #2563eb;    /* Blue 600 */
  --color-brand-accent: #38bdf8;       /* Sky 400 */
  --color-brand-emerald: #10b981;      /* Emerald 500 */
  
  --bg-deep: #07090e;
  --bg-surface: #0c1018;
  --bg-card: #0f1420;
  --bg-input: #080a0f;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(6, 182, 212, 0.35);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* Base Body Setup */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-deep);
  color: #f8fafc;
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--color-brand-primary);
  color: #000000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #07090e;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

/* Typography & Mono Elements */
.font-mono {
  font-family: var(--font-mono);
}

/* Gradients */
.gradient-text-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-subtle {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card & Surface Systems */
.trade-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.trade-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.12);
}

.glass-pill {
  background: rgba(8, 145, 178, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Telemetry Dashboard Glows */
.telemetry-glow {
  box-shadow: 0 0 50px -10px rgba(6, 182, 212, 0.25);
}

/* Image Frame Overlays */
.trade-image-overlay {
  background: linear-gradient(to top, #0c1018 0%, rgba(12, 16, 24, 0.4) 50%, transparent 100%);
}

/* Button & Interactive Effects */
.btn-primary-glow {
  background: linear-gradient(90deg, #22d3ee, #06b6d4, #3b82f6);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.4);
  transition: all 0.25s ease;
}

.btn-primary-glow:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 15px 30px -5px rgba(6, 182, 212, 0.6);
}

/* Pulsing Indicators */
@keyframes trade-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-pulse {
  animation: trade-pulse 2s infinite;
}

/* Utility Animations */
.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
