/* Predictions Tab Styles */

.predictions-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.predictions-header {
  text-align: center;
  margin-bottom: 24px;
}

.predictions-header h2 {
  font-size: 1.8em;
  margin: 0 0 4px;
}

.predictions-subtitle {
  color: #888;
  font-size: 0.95em;
  margin: 0;
}

/* Form Section */
.predictions-form-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #e0e0e0;
}

.prediction-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9em;
}

.form-group select,
.form-group input[type="number"] {
  padding: 10px 12px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-size: 1em;
  background: white;
  transition: border-color 0.2s;
}

.form-group select:focus,
.form-group input:focus {
  border-color: #7c3aed;
  outline: none;
}

.confidence-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.conf-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.conf-option input[type="radio"] {
  display: none;
}

.conf-label {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.conf-option input:checked + .conf-label {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.confidence-low {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #a5d6a7;
}

.conf-option input:checked + .confidence-low {
  background: #4caf50;
  color: white;
}

.confidence-medium {
  background: #fff3e0;
  color: #e65100;
  border-color: #ffcc80;
}

.conf-option input:checked + .confidence-medium {
  background: #ff9800;
  color: white;
}

.confidence-high {
  background: #fce4ec;
  color: #c62828;
  border-color: #ef9a9a;
}

.conf-option input:checked + .confidence-high {
  background: #f44336;
  color: white;
}

.submit-prediction {
  padding: 12px 24px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-prediction:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* My Prediction Card */
.my-prediction-card {
  background: linear-gradient(135deg, #f3e8ff, #e0e7ff);
  border-radius: 12px;
  padding: 16px;
  border: 2px solid #c084fc;
}

.pred-badge {
  display: inline-block;
  background: #7c3aed;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8em;
  font-weight: 600;
  margin-bottom: 12px;
}

.pred-detail {
  margin: 6px 0;
  font-size: 0.95em;
}

.pred-result {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
}

.result-correct {
  background: #e8f5e9;
  color: #2e7d32;
}

.result-wrong {
  background: #fce4ec;
  color: #c62828;
}

.pred-pending {
  margin-top: 12px;
  color: #888;
  font-style: italic;
}

/* Predictions Grid */
.predictions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.predictions-current,
.predictions-leaderboard-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e0e0e0;
}

.predictions-current h3,
.predictions-leaderboard-section h3 {
  margin: 0 0 12px;
  font-size: 1.1em;
}

.pred-summary {
  color: #666;
  font-size: 0.85em;
  margin-bottom: 12px;
}

/* Distribution Bars */
.pred-distribution {
  margin-bottom: 16px;
}

.pred-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pred-bar-label {
  min-width: 80px;
  font-size: 0.85em;
  font-weight: 600;
}

.pred-bar-track {
  flex: 1;
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.pred-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75em;
  font-weight: 700;
  min-width: 30px;
}

.pred-bar-avg {
  font-size: 0.75em;
  color: #888;
  min-width: 70px;
  text-align: right;
}

/* Prediction List */
.pred-list {
  max-height: 300px;
  overflow-y: auto;
}

.pred-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 0.85em;
  background: white;
}

.pred-mine {
  background: #f3e8ff;
  border: 1px solid #c084fc;
}

.pred-who {
  color: #666;
  font-family: monospace;
  font-size: 0.8em;
  min-width: 90px;
}

.pred-pick {
  font-weight: 600;
  min-width: 80px;
}

.pred-est {
  color: #888;
  font-size: 0.85em;
}

.confidence-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
}

/* Leaderboard */
.pred-lb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pred-lb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: white;
  font-size: 0.85em;
}

.pred-lb-mine {
  background: #f3e8ff;
  border: 1px solid #c084fc;
}

.pred-lb-rank {
  min-width: 30px;
  font-weight: 700;
}

.pred-lb-name {
  flex: 1;
  font-family: monospace;
  font-size: 0.85em;
}

.pred-lb-points {
  font-weight: 700;
  color: #7c3aed;
}

.pred-lb-accuracy {
  color: #888;
  font-size: 0.8em;
  min-width: 40px;
}

.pred-lb-streak {
  min-width: 30px;
}

/* How It Works */
.predictions-how-it-works {
  margin-top: 24px;
}

.predictions-how-it-works h3 {
  margin-bottom: 16px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.how-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.how-emoji {
  font-size: 2em;
  display: block;
  margin-bottom: 8px;
}

.how-card h4 {
  margin: 0 0 6px;
  font-size: 0.9em;
}

.how-card p {
  margin: 0;
  font-size: 0.8em;
  color: #666;
}

/* Empty states */
.empty-state,
.no-season {
  text-align: center;
  color: #888;
  padding: 24px;
  font-style: italic;
}

.loading-skeleton {
  color: #aaa;
  text-align: center;
  padding: 20px;
}

/* Dark Mode */
.dark .predictions-form-section,
.dark .predictions-current,
.dark .predictions-leaderboard-section,
.dark .how-card {
  background: #1e1e2e;
  border-color: #333;
}

.dark .form-group select,
.dark .form-group input[type="number"] {
  background: #2a2a3e;
  border-color: #444;
  color: #e0e0e0;
}

.dark .pred-item,
.dark .pred-lb-row {
  background: #2a2a3e;
}

.dark .pred-bar-track {
  background: #333;
}

.dark .my-prediction-card {
  background: linear-gradient(135deg, #2a1b3d, #1e2040);
  border-color: #7c3aed;
}

.dark .predictions-subtitle,
.dark .pred-summary,
.dark .pred-who,
.dark .pred-est,
.dark .pred-lb-accuracy,
.dark .how-card p,
.dark .empty-state,
.dark .no-season {
  color: #aaa;
}

/* Mobile */
@media (max-width: 768px) {
  .predictions-grid {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .confidence-selector {
    flex-direction: column;
    gap: 8px;
  }

  .pred-bar-row {
    flex-wrap: wrap;
  }

  .pred-item {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

  .pred-lb-row {
    font-size: 0.8em;
  }
}
