/**
 * Edge Sniper Dynamic Elements Styling
 * Add this to your existing CSS
 */

/* Bet Cards */
.bet-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.bet-card.win {
  border-left: 4px solid #28a745;
}

.bet-card.loss {
  border-left: 4px solid #dc3545;
}

.bet-card.pending {
  border-left: 4px solid #ffc107;
}

.bet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sport-badge {
  background: #007bff;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.result-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.result-badge.win {
  background: #d4edda;
  color: #155724;
}

.result-badge.loss {
  background: #f8d7da;
  color: #721c24;
}

.result-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.bet-matchup {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.bet-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 8px;
}

.bet-details .pick {
  font-weight: 600;
  color: #495057;
}

.bet-details .odds {
  font-weight: 700;
  color: #007bff;
}

.bet-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #e9ecef;
  margin-top: 8px;
}

.bet-result .score {
  font-weight: 600;
  color: #495057;
}

.bet-result .units {
  font-weight: 700;
  font-size: 16px;
}

.bet-result .units.positive {
  color: #28a745;
}

.bet-result .units.negative {
  color: #dc3545;
}

/* Edge Cards */
.edge-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  transition: transform 0.2s;
}

.edge-card:hover {
  transform: scale(1.02);
}

.edge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ev-badge {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.edge-matchup {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.edge-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  opacity: 0.9;
}

.edge-details .pick {
  font-weight: 600;
}

.edge-details .odds {
  font-weight: 700;
}

.edge-details .book {
  font-size: 11px;
  opacity: 0.8;
}

/* Summary Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
}

.stat-value.positive {
  color: #28a745;
}

.stat-value.negative {
  color: #dc3545;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .bet-card, .edge-card {
    padding: 12px;
  }
  
  .bet-matchup, .edge-matchup {
    font-size: 14px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Scroll Container */
.scroll-container {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

.scroll-container::-webkit-scrollbar {
  width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}
