/* OxTrade Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-main: #0B0E14;
  --bg-card: #151922;
  --bg-card-hover: #1c2230;
  --border-color: #232936;
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  --color-green: #10B981;
  --color-green-glow: rgba(16, 185, 129, 0.25);
  --color-red: #EF4444;
  --color-red-glow: rgba(239, 68, 68, 0.25);
  --color-blue: #3B82F6;
  --color-purple: #8B5CF6;
  --color-amber: #F59E0B;
}

html {
  scroll-behavior: smooth;
}

#tradingViewSection,
#aiVerdictCard,
#analysisSection,
#technicalSection,
#indicatorsSection {
  scroll-margin-top: 75px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #2D3748;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4A5568;
}

/* Glass & Card Effects */
.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
}

.card-glass:hover {
  border-color: #374151;
}

/* Glow effects for Buy / Sell */
.glow-green {
  box-shadow: 0 0 20px var(--color-green-glow);
}

.glow-red {
  box-shadow: 0 0 20px var(--color-red-glow);
}

.glow-purple {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

/* Pressure Bar Animation */
.depth-bar-bid {
  background: linear-gradient(90deg, #059669, #10B981);
  transition: width 0.5s ease-out;
}

.depth-bar-ask {
  background: linear-gradient(90deg, #EF4444, #DC2626);
  transition: width 0.5s ease-out;
}

/* Pulsing Dots */
.live-pulse {
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Action Buttons */
.btn-buy {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
}
.btn-buy:hover {
  background: linear-gradient(135deg, #34D399, #10B981);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-sell {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transition: all 0.2s;
}
.btn-sell:hover {
  background: linear-gradient(135deg, #F87171, #EF4444);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.btn-trailing {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  transition: all 0.2s;
}
.btn-trailing:hover {
  background: linear-gradient(135deg, #A78BFA, #8B5CF6);
  transform: translateY(-1px);
}

/* ====================================================
   SMART WHALE FLOW INTELLIGENCE - TERMINAL STYLES
   ==================================================== */

.whale-card {
  background: #11151F;
  border: 1px solid #1E2533;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.whale-card:hover {
  background: #161C2A;
  border-color: #2F3B52;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whale-card-high-impact {
  border-left: 3px solid #EF4444 !important;
}

.whale-card-important {
  border-left: 3px solid #F59E0B !important;
}

.whale-card-normal {
  border-left: 3px solid #3B82F6 !important;
}

/* Symmetrical Whale Pressure Gauge */
.whale-gauge-track {
  background: #181E2C;
  height: 6px;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
}

.whale-gauge-fill-pos {
  background: linear-gradient(90deg, #10B981, #34D399);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.whale-gauge-fill-neg {
  background: linear-gradient(90deg, #F87171, #EF4444);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* Fade In Animation for Prepending Cards */
@keyframes whaleFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-whale-prepend {
  animation: whaleFadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal and Drawer Backdrop */
.modal-backdrop-blur {
  background: rgba(8, 11, 17, 0.82);
  backdrop-filter: blur(8px);
}
