/* Polymarket Dashboard - Futuristic Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Space Grotesk', sans-serif;
  background: #03030a;
  overflow-x: hidden;
}

.polymarket-dashboard {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a1a 0%, #03030a 100%);
  overflow-x: hidden;
  padding: 2rem;
}

/* Background Effects */
.dashboard-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0, 242, 255, 0.15), transparent);
  filter: blur(80px);
  animation: floatGlow 20s ease-in-out infinite;
}

.bg-glow-2 {
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255, 0, 229, 0.15), transparent);
  filter: blur(80px);
  animation: floatGlow 15s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(5%, 5%) scale(1.1);
  }
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.bg-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.dashboard-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Hero Header */
.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(10, 10, 26, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(0, 242, 255, 0.2);
  flex-wrap: wrap;
  gap: 1rem;
}

.title-group {
  flex: 1;
}

.title-icon {
  display: inline-block;
  font-size: 2rem;
  color: #00f2ff;
  margin-right: 0.5rem;
}

.title-group h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #00f2ff, #ff00e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.title-group h1 i {
  font-size: 1.2rem;
  color: #00f2ff;
}

.dashboard-sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.dashboard-sub i {
  color: #00f2ff;
}

.status-pulse {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(0, 242, 255, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  color: #00f2ff;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 5px #00ff88;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* Neo Description */
.neo-description {
  background: rgba(10, 10, 26, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 242, 255, 0.2);
  transition: all 0.3s ease;
}

.neo-description:hover {
  border-color: rgba(0, 242, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.desc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.desc-header i {
  font-size: 1.5rem;
  color: #00f2ff;
}

.desc-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.desc-text p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.crypto-badge {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.crypto-tag {
  background: rgba(0, 242, 255, 0.1);
  border: 1px solid rgba(0, 242, 255, 0.3);
  border-radius: 2rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #00f2ff;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.glass-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.3), transparent);
  margin: 1rem 0;
}

.contact-info {
  font-size: 0.85rem;
}

.link-glow {
  color: #00f2ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.link-glow:hover {
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
  color: #fff;
}

.highlight-chip {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(255, 0, 229, 0.2));
  border-radius: 2rem;
  padding: 0.25rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #00f2ff;
}

/* Stats Cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(10, 10, 26, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(0, 242, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 242, 255, 0.5);
  box-shadow: 0 5px 20px rgba(0, 242, 255, 0.1);
}

.stat-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-title i {
  color: #00f2ff;
  font-size: 0.9rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #00f2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.stat-trend {
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-trend.positive {
  color: #00ff88;
}

.stat-trend.negative {
  color: #ff3366;
}

/* Cards Container */
.cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: rgba(10, 10, 26, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 242, 255, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(0, 242, 255, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 242, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card-header i {
  font-size: 1.5rem;
  color: #00f2ff;
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.card-header h3 {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  margin-left: auto;
}

/* Tables */
.table-container {
  overflow-x: auto;
  padding: 0 1.5rem 1.5rem;
}

.prediction-table {
  width: 100%;
  border-collapse: collapse;
}

.prediction-table th {
  text-align: left;
  padding: 0.75rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(0, 242, 255, 0.2);
}

.prediction-table td {
  padding: 0.75rem 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prediction-row:hover, .trade-row:hover {
  background: rgba(0, 242, 255, 0.05);
}

.time-badge {
  font-family: monospace;
  font-size: 0.75rem;
  color: #00f2ff;
}

.symbol-btc, .symbol-eth, .symbol-sol, .symbol-xrp, .symbol-doge {
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.symbol-btc { color: #f7931a; }
.symbol-eth { color: #627eea; }
.symbol-sol { color: #00ffa3; }
.symbol-xrp { color: #00aaff; }
.symbol-doge { color: #c3a634; }

.timeframe {
  background: rgba(0, 242, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #00f2ff;
}

.direction {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.direction.up {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
}

.direction.down {
  color: #ff3366;
  background: rgba(255, 51, 102, 0.1);
}

.probability {
  font-weight: 600;
  color: #00f2ff;
}

.result {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
}

.result.win {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
}

.result.loss {
  color: #ff3366;
  background: rgba(255, 51, 102, 0.1);
}

.result.pending {
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.1);
}

.trade-side {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
}

.trade-side.long {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
}

.trade-side.short {
  color: #ff3366;
  background: rgba(255, 51, 102, 0.1);
}

.amount {
  font-weight: 600;
  color: #fff;
}

/* Card Footer */
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 242, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.card-footer i {
  font-size: 0.7rem;
  color: #00f2ff;
}

.footer-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .polymarket-dashboard {
    padding: 1rem;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stats-cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .hero-header {
    flex-direction: column;
    text-align: center;
  }
  
  .title-group h1 {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .card-header h3 {
    margin-left: 0;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .contact-links {
    justify-content: center;
  }
}