/* ========================================
   4i4A Group - Step 4: Crypto Panels System
   Gradual Migration - Unified Crypto Components
   ======================================== */

/* ===== CRYPTO PANEL VARIABLES ===== */
:root {
  /* Crypto-specific colors */
  --crypto-solana: #9945FF;
  --crypto-doge: #FFD700;
  --crypto-bitcoin: #F7931A;
  --crypto-ethereum: var(--electric-cyan, #00ffff);
  --crypto-oi: var(--neon-green, #00ff88);
  
  /* Panel sizing system */
  --crypto-panel-padding: 12px;
  --crypto-panel-gap: 8px;
  --crypto-panel-border-radius: 12px;
  --crypto-panel-min-height: 120px;
  
  /* Typography scale for crypto panels */
  --crypto-title-size: 16px;
  --crypto-value-size: 33px;
  --crypto-meta-size: 12px;
  --crypto-stat-size: 14px;
  
  /* Animation and interaction */
  --crypto-transition: all 0.3s ease;
  --crypto-hover-scale: 1.02;
  --crypto-hover-translate: -4px;
}

/* ===== UNIFIED CRYPTO PANEL BASE ===== */

.u-crypto-panel {
  width: 100% !important;
  max-width: 100% !important;
  padding: var(--crypto-panel-padding) !important;
  border-radius: var(--crypto-panel-border-radius) !important;
  box-sizing: border-box !important;
  text-align: center !important;
  min-height: var(--crypto-panel-min-height) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: var(--crypto-panel-gap) !important;
  transition: var(--crypto-transition) !important;
  position: relative !important;
  overflow: hidden !important;
}

.u-crypto-panel:hover {
  transform: translateY(var(--crypto-hover-translate)) scale(var(--crypto-hover-scale)) !important;
}

/* ===== CRYPTO PANEL STRUCTURE ===== */

.u-crypto-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
}

.u-crypto-title {
  margin: 0 !important;
  font-size: var(--crypto-title-size) !important;
  font-weight: 600 !important;
  opacity: 0.9 !important;
  color: #cfe3ff !important;
  text-align: center !important;
}

.u-crypto-icon {
  font-size: 18px !important;
  animation: pulse 2s infinite !important;
}

.u-crypto-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  margin-bottom: 8px !important;
}

.u-crypto-value {
  color: #ffffff !important;
  font-size: var(--crypto-value-size) !important;
  font-weight: 700 !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6) !important;
  font-family: 'Share Tech Mono', monospace !important;
  line-height: 1.2 !important;
}

.u-crypto-change {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-size: var(--crypto-meta-size) !important;
  font-weight: 600 !important;
}

/* ===== CRYPTO STATS SYSTEM ===== */

.u-crypto-stats {
  display: flex !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: 8px !important;
  padding: 8px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.u-crypto-stat {
  flex: 1 !important;
  text-align: center !important;
  padding: 6px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.u-crypto-stat-label {
  display: block !important;
  font-size: 11px !important;
  color: var(--muted-blue, #bcd4ff) !important;
  margin-bottom: 2px !important;
}

.u-crypto-stat-value {
  font-size: var(--crypto-stat-size) !important;
  font-weight: 600 !important;
  color: var(--electric-cyan, #00ffff) !important;
}

/* ===== CRYPTO PANEL VARIANTS ===== */

/* Solana Panel */
.u-crypto-solana {
  border: 2px solid var(--crypto-solana) !important;
  box-shadow: 0 0 20px rgba(153, 69, 255, 0.2) !important;
}

.u-crypto-solana .u-crypto-title {
  color: var(--crypto-solana) !important;
}

.u-crypto-solana .u-crypto-change {
  border-color: rgba(153, 69, 255, 0.2) !important;
}

.u-crypto-solana:hover {
  border-color: var(--toxic-yellow, #ffff00) !important;
  box-shadow: 0 0 25px rgba(255, 255, 0, 0.3) !important;
}

/* DOGE Panel */
.u-crypto-doge {
  border: 2px solid var(--crypto-doge) !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2) !important;
}

.u-crypto-doge .u-crypto-title {
  color: var(--crypto-doge) !important;
}

.u-crypto-doge .u-crypto-value {
  color: var(--crypto-doge) !important;
  text-shadow: 0 0 4px var(--crypto-doge) !important;
}

.u-crypto-doge .u-crypto-change {
  border-color: rgba(255, 215, 0, 0.2) !important;
}

.u-crypto-doge:hover {
  border-color: var(--neon-green, #00ff88) !important;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.3) !important;
}

/* Open Interest Panel */
.u-crypto-oi {
  border: 2px solid var(--crypto-oi) !important;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2) !important;
}

.u-crypto-oi .u-crypto-title {
  color: var(--crypto-oi) !important;
}

.u-crypto-oi .u-crypto-value {
  color: var(--crypto-oi) !important;
  text-shadow: 0 0 4px var(--crypto-oi) !important;
}

.u-crypto-oi:hover {
  border-color: var(--electric-cyan, #00ffff) !important;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3) !important;
}

/* Sentiment Panel */
.u-crypto-sentiment {
  border: 2px solid var(--hacker-red, #ff0040) !important;
  box-shadow: 0 0 20px rgba(255, 0, 64, 0.2) !important;
}

.u-crypto-sentiment .u-crypto-title {
  color: var(--hacker-red, #ff0040) !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  animation: flicker 2s infinite alternate !important;
}

.u-crypto-sentiment:hover {
  border-color: var(--toxic-yellow, #ffff00) !important;
  box-shadow: 0 0 25px rgba(255, 255, 0, 0.4) !important;
}

/* ===== CRYPTO CHANGE STATES ===== */

.u-crypto-change.positive {
  background: rgba(0, 255, 136, 0.1) !important;
  border-color: rgba(0, 255, 136, 0.3) !important;
  color: #00ff88 !important;
}

.u-crypto-change.negative {
  background: rgba(255, 68, 68, 0.1) !important;
  border-color: rgba(255, 68, 68, 0.3) !important;
  color: #ff4444 !important;
}

.u-crypto-change.neutral {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* ===== COMPACT PANEL VARIANT ===== */

.u-crypto-compact {
  min-height: 100px !important;
  padding: 8px !important;
  gap: 4px !important;
}

.u-crypto-compact .u-crypto-title {
  font-size: 14px !important;
}

.u-crypto-compact .u-crypto-value {
  font-size: 24px !important;
}

.u-crypto-compact .u-crypto-stats {
  margin-top: 4px !important;
  padding: 6px !important;
}

/* ===== SPARKLINE CONTAINER ===== */

.u-crypto-sparkline {
  margin-top: 8px !important;
  padding: 6px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ===== RESPONSIVE CRYPTO PANELS ===== */

@media (max-width: 768px) {
  .u-crypto-panel {
    padding: 16px !important;
    min-height: 140px !important;
  }
  
  .u-crypto-value {
    font-size: 28px !important;
  }
  
  .u-crypto-stats {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .u-crypto-stat {
    padding: 8px !important;
  }
}

/* ===== ANIMATION ENHANCEMENTS ===== */

.u-crypto-pulse {
  animation: cryptoPulse 2s ease-in-out infinite !important;
}

@keyframes cryptoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.u-crypto-glow {
  animation: cryptoGlow 3s ease-in-out infinite !important;
}

@keyframes cryptoGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4), 0 0 40px rgba(0, 255, 255, 0.2);
  }
}

/* ===== STEP 4 COMPLETE - UNIFIED CRYPTO PANELS READY ===== */
