/* Scoring Dashboard Styles */

.scoring-dashboard {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Header */
.scoring-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f3f4f6;
}

.scoring-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.overall-score {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  color: white;
}

.score-value {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.score-label {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

.score-interpretation {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

/* Content Layout */
.scoring-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Radar Chart */
.radar-chart {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 8px;
  padding: 1rem;
  min-height: 350px;
}

.radar-svg {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
}

.radar-grid {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 1;
}

.radar-data {
  fill: rgba(8, 145, 178, 0.2);
  stroke: #0891b2;
  stroke-width: 2;
}

.radar-label {
  text-anchor: middle;
  dominant-baseline: middle;
  font-size: 12px;
  font-weight: 600;
  fill: #475569;
}

/* Factor Bars */
.factors-bars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.factor-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.factor-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.factor-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.factor-value {
  font-size: 14px;
  font-weight: 700;
  color: #0891b2;
}

.factor-meter {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #0891b2, #06b6d4);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.benchmark-label {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Footer - Gap Analysis */
.scoring-footer {
  padding-top: 1.5rem;
  border-top: 2px solid #f3f4f6;
}

.gap-analysis h4 {
  margin: 0 0 1rem 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gap-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.gap-item:last-child {
  border-bottom: none;
}

.gap-name {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

.gap-value {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.gap-indicator {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
  .scoring-content {
    grid-template-columns: 1fr;
  }

  .scoring-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .scoring-dashboard {
    padding: 1.5rem;
  }

  .scoring-header h2 {
    font-size: 18px;
  }

  .score-circle {
    width: 80px;
    height: 80px;
  }

  .score-value {
    font-size: 28px;
  }

  .radar-chart {
    min-height: 250px;
  }

  .factor-bar {
    gap: 0.25rem;
  }

  .factor-name {
    font-size: 12px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .scoring-dashboard {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .scoring-header {
    border-bottom-color: #334155;
  }

  .scoring-header h2 {
    color: #f1f5f9;
  }

  .score-interpretation {
    color: #cbd5e1;
  }

  .radar-chart {
    background: #0f172a;
  }

  .radar-grid {
    stroke: #475569;
  }

  .radar-label {
    fill: #cbd5e1;
  }

  .factor-name {
    color: #f1f5f9;
  }

  .benchmark-label {
    color: #64748b;
  }

  .gap-analysis h4 {
    color: #f1f5f9;
  }

  .gap-item {
    border-bottom-color: #334155;
  }

  .gap-name {
    color: #cbd5e1;
  }

  .gap-value {
    color: #f1f5f9;
  }
}
