/* Match Predictions Component Styles */

/* Prediction cards gradient backgrounds */
.prediction-card-home {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.prediction-card-away {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
}

.prediction-card-draw {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.05) 0%, rgba(107, 114, 128, 0.02) 100%);
}

/* Score prediction boxes */
.score-prediction-box {
  transition: all 0.2s ease;
  cursor: default;
}

.score-prediction-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.score-prediction-primary {
  background: linear-gradient(135deg, var(--clr-primary-a0-light) 0%, var(--clr-primary-a0) 100%);
  color: white;
  font-weight: bold;
}

/* Probability bars */
.probability-bar {
  position: relative;
  overflow: hidden;
}

.probability-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Betting market badges */
.market-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.market-badge-high {
  background-color: rgba(16, 185, 129, 0.1);
  color: rgb(16, 185, 129);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.market-badge-medium {
  background-color: rgba(251, 191, 36, 0.1);
  color: rgb(245, 158, 11);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.market-badge-low {
  background-color: rgba(107, 114, 128, 0.1);
  color: rgb(107, 114, 128);
  border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Margin probability visualization */
.margin-bar {
  height: 40px;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.margin-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.margin-segment:hover {
  filter: brightness(1.1);
}

.margin-home-3 {
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

.margin-home-2 {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.margin-home-1 {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.margin-draw {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.margin-away-1 {
  background: linear-gradient(135deg, #f87171, #ef4444);
}

.margin-away-2 {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.margin-away-3 {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Possession bar styling */
.possession-bar {
  position: relative;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
}

.possession-bar-home {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.possession-bar-away {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Confidence indicator */
.confidence-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.confidence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
}

.confidence-dot.active {
  background: var(--clr-primary-a0);
}

/* Enhanced table styling */
.prediction-table {
  border-collapse: separate;
  border-spacing: 0;
}

.prediction-table th {
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #6b7280;
  padding: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.prediction-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.prediction-table tr:hover td {
  background-color: #fafafa;
}