/**
 * IntervAI Pro - Scorecard & Performance Analytics Styles
 */

.scorecard-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 3rem;
}

/* Header Banner */
.scorecard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.scorecard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.scorecard-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.scorecard-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.scorecard-header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Overall Score Circular Gauge */
.overall-score-circle {
  position: relative;
  width: 110px;
  height: 110px;
}

.score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.score-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 264;
  transition: stroke-dashoffset 1s ease;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}

.score-denom {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.scorecard-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Grid & Competency Meters */
.scorecard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metrics-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.metric-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.metric-bar-label {
  color: var(--text-primary);
}

.metric-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

/* Speech Insights */
.speech-insights-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.box-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.speech-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-pill-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.stat-pill-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

/* Radar Chart */
.radar-canvas-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
}

/* Feedback Columns (Strengths vs Growth) */
.feedback-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feedback-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feedback-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.feedback-bullet-list li i {
  margin-top: 3px;
  flex-shrink: 0;
}

/* 7-Day Study Plan Timeline */
.study-roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.roadmap-step {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.roadmap-step-badge {
  display: inline-block;
  background: var(--color-primary-glow);
  color: var(--color-sky);
  border: 1px solid var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.step-topic {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.step-resource {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Transcript Review List */
.transcript-review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.transcript-entry {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
}

.ai-entry { border-left: 3px solid var(--color-primary); }
.candidate-entry { border-left: 3px solid var(--color-cyan); }

.entry-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.entry-sender {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.entry-time {
  color: var(--text-muted);
}

.entry-body {
  font-size: 0.85rem;
  line-height: 1.5;
}

.scorecard-bottom-bar {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

/* Print Stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .app-header, .scorecard-actions, .scorecard-bottom-bar {
    display: none !important;
  }
  .card-glass {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    color: #000000 !important;
  }
  .scorecard-wrapper {
    padding: 0 !important;
  }
}
