/* Enhanced DeFi Shards Analytics Styles */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Mono:wght@400;700&display=swap');

/* Root Variables */
:root {
  --deep-blue: #0f1419;
  --electric-blue: #00d4ff;
  --shard-purple: #6366f1;
  --mint-green: #10b981;
  --bright-green: #22c55e;
  --warning-amber: #f59e0b;
  --danger-red: #ef4444;
  --glass-bg: rgba(30, 41, 59, 0.3);
  --card-bg: #1e293b;
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, var(--deep-blue) 0%, #1a202c 50%, #2d3748 100%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

/* Glass Morphism Effects */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.37),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

/* Glow Effects */
.glow {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.glow-text {
  text-shadow: 0 0 10px currentColor;
}

/* Animation Keyframes */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Hover Effects */
.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 48px 0 rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

/* Particle Background Effect */
.bg-particles {
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--deep-blue);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--electric-blue), var(--shard-purple));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #00a8cc, #5856eb);
}

/* Enhanced Button Styles */
button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Progress Bar Enhancement */
.progress-bar {
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

/* Live Indicator */
.live-indicator {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Table Enhancements */
table {
  border-collapse: separate;
  border-spacing: 0;
}

tbody tr:hover {
  background: rgba(0, 212, 255, 0.05);
  transform: scale(1.001);
}

/* Badge Styles */
.badge {
  background: linear-gradient(45deg, var(--shard-purple), var(--electric-blue));
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chart Container */
.chart-container {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .glass-card {
    margin: 0 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Focus States */
input:focus, button:focus {
  outline: 2px solid var(--electric-blue);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  background: linear-gradient(
    90deg,
    var(--glass-bg),
    rgba(0, 212, 255, 0.1),
    var(--glass-bg)
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Enhanced Card Shadows */
.enhanced-shadow {
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 20px rgba(0, 212, 255, 0.1);
}

/* Crystalline Borders */
.crystal-border {
  border: 2px solid transparent;
  background: 
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(45deg, var(--electric-blue), var(--shard-purple), var(--mint-green)) border-box;
}

/* Text Gradient Effects */
.gradient-text {
  background: linear-gradient(45deg, var(--electric-blue), var(--shard-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Holographic Effect */
.holographic {
  background: linear-gradient(
    45deg,
    var(--electric-blue),
    var(--shard-purple),
    var(--mint-green),
    var(--warning-amber)
  );
  background-size: 400% 400%;
  animation: holographic 3s ease infinite;
}

@keyframes holographic {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}