﻿/* EternalMarket AI - Advanced Trading Terminal Stylesheet */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --bg-tertiary: #131b2e;
  --bg-card: rgba(16, 24, 39, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.25);
  
  --color-bullish: #10b981;
  --color-bullish-glow: rgba(16, 185, 129, 0.3);
  --color-bearish: #f43f5e;
  --color-bearish-glow: rgba(244, 63, 94, 0.3);
  --color-cyan: #06b6d4;
  --color-accent: #3b82f6;
  --color-purple: #8b5cf6;
  --color-gold: #f59e0b;
}

body {
  background-color: var(--bg-primary);
  color: #f1f5f9;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.glass-panel-hover {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-hover:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 35px -5px rgba(14, 165, 233, 0.15);
  transform: translateY(-2px);
}

/* Glowing Badges & Action Indicators */
.badge-strong-buy {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 0 15px var(--color-bullish-glow);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.badge-buy {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-hold {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-sell {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.badge-strong-sell {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  color: #ffffff;
  box-shadow: 0 0 15px var(--color-bearish-glow);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Tick Flash Animations */
@keyframes tickUp {
  0% { background-color: rgba(16, 185, 129, 0.45); color: #34d399; }
  100% { background-color: transparent; }
}

@keyframes tickDown {
  0% { background-color: rgba(244, 63, 94, 0.45); color: #f87171; }
  100% { background-color: transparent; }
}

.flash-green {
  animation: tickUp 0.8s ease-out;
}

.flash-red {
  animation: tickDown 0.8s ease-out;
}

/* Radar Scan Pulse for AI Bot */
@keyframes radarPulse {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
  70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.ai-pulse {
  animation: radarPulse 2.5s infinite;
}

/* Live Market Ticker Ribbon */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(13, 18, 29, 0.95);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.ticker-move {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 45s linear infinite;
}

.ticker-wrap:hover .ticker-move {
  animation-play-state: paused;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Interactive Table Hover */
.crypto-row {
  transition: background-color 0.15s ease, border-left 0.15s ease;
  cursor: pointer;
}
.crypto-row:hover {
  background-color: rgba(30, 41, 59, 0.6);
}
.crypto-row.active-coin {
  background-color: rgba(56, 189, 248, 0.12);
  border-left: 3px solid #38bdf8;
}

/* Score Progress Arc / Bar */
.score-gradient {
  background: linear-gradient(90deg, #f43f5e 0%, #f59e0b 50%, #10b981 100%);
}

/* Chat bubble styling */
.chat-bubble-bot {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-left: 3px solid #06b6d4;
}

.chat-bubble-user {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #ffffff;
}
