/* ===== SCORING MODULE - COLPOSCOPIE ===== */

/* Container principal du calculateur */
.score-calculator {
  background: var(--bg-canvas, #ffffff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: var(--border-radius, 8px);
  padding: 24px;
  margin-bottom: 16px;
}

/* ===== HEADERS ===== */

.reid-header,
.swede-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.reid-title,
.swede-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
}

.reid-subtitle,
.swede-subtitle {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary, #666);
}

/* ===== CALCULATOR GRID ===== */

.reid-calculator-grid,
.swede-calculator-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

/* Grille des critères */
.criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.criteria-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg-sidebar, #f8f9fa);
  border-radius: 6px;
  border: 1px solid var(--border-color, #e0e0e0);
}

.criteria-item label {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary, #1a1a1a);
}

.criteria-label {
  flex: 1;
}

.criteria-select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
}

.criteria-select:focus {
  outline: none;
  border-color: var(--accent-color, #4a90e2);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

/* ===== RESULT PANELS ===== */

.reid-result-panel,
.swede-result-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: var(--bg-sidebar, #f8f9fa);
  border-radius: 8px;
  border: 1px solid var(--border-color, #e0e0e0);
  min-width: 150px;
  align-self: stretch;
}

.score-display {
  text-align: center;
  margin-bottom: 8px;
}

.score-display .score-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.score-display .score-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary, #1a1a1a);
  transition: color 0.2s ease;
}

.score-display .score-max {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary, #888);
  margin-left: 2px;
}

/* Interprétation */
.score-interpretation {
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  transition: background-color 0.2s ease;
}

.score-interpretation .interpretation-text {
  font-size: 12px;
  font-weight: 600;
}

/* ===== SCORE STATES ===== */

/* High risk */
.reid-result-panel.high .score-value,
.swede-result-panel.high .score-value {
  color: #e53935;
}

.reid-result-panel.high .score-interpretation,
.swede-result-panel.high .score-interpretation {
  background: #ffebee;
}

.reid-result-panel.high .interpretation-text,
.swede-result-panel.high .interpretation-text {
  color: #c62828;
}

/* Intermediate risk */
.reid-result-panel.intermediate .score-value,
.swede-result-panel.intermediate .score-value {
  color: #f57c00;
}

.reid-result-panel.intermediate .score-interpretation,
.swede-result-panel.intermediate .score-interpretation {
  background: #fff3e0;
}

.reid-result-panel.intermediate .interpretation-text,
.swede-result-panel.intermediate .interpretation-text {
  color: #e65100;
}

/* Low risk */
.reid-result-panel.low .score-value,
.swede-result-panel.low .score-value {
  color: #43a047;
}

.reid-result-panel.low .score-interpretation,
.swede-result-panel.low .score-interpretation {
  background: #e8f5e9;
}

.reid-result-panel.low .interpretation-text,
.swede-result-panel.low .interpretation-text {
  color: #2e7d32;
}

/* ===== LEGEND ===== */

.score-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--border-color, #e0e0e0);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-secondary, #666);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-item.high .legend-dot {
  background: #e53935;
}

.legend-item.intermediate .legend-dot {
  background: #f57c00;
}

.legend-item.low .legend-dot {
  background: #43a047;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .score-calculator {
    padding: 16px;
  }

  .reid-header,
  .swede-header {
    flex-direction: column;
    gap: 4px;
  }

  .reid-calculator-grid,
  .swede-calculator-grid {
    grid-template-columns: 1fr;
  }

  .reid-result-panel,
  .swede-result-panel {
    margin-top: 12px;
  }
}
