/* Evidence-Badge & Consolidated-Section Styles
 * Ships with the SPX-tab consolidation (2026-07-17).
 * Applies badges + collapsible sections without touching widget internals.
 */

/* Section wrappers */
.cc-section {
  margin: 16px auto;
  max-width: 1320px;
  border-radius: 10px;
  overflow: hidden;
}

.cc-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}
.cc-section-header:hover { filter: brightness(1.1); }

.cc-section-header .cc-section-icon {
  font-size: 18px;
}
.cc-section-header .cc-section-title { flex: 1; color: #c9d1d9; }
.cc-section-header .cc-section-subtitle {
  font-size: 10.5px;
  font-weight: 500;
  color: #7d8590;
  text-transform: none;
  letter-spacing: 0;
}
.cc-section-header .cc-section-count {
  font-size: 10px;
  color: #7d8590;
  font-family: ui-monospace, monospace;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.35);
}
.cc-section-header .cc-section-chevron {
  transition: transform 0.2s ease;
  color: #7d8590;
  font-size: 14px;
}
.cc-section.collapsed .cc-section-chevron { transform: rotate(-90deg); }

.cc-section.collapsed .cc-section-body { display: none; }
.cc-section-body { padding: 8px 20px 16px; }

/* Section color themes */
.cc-section.actionable {
  border: 2px solid rgba(0,229,155,0.35);
  background: linear-gradient(180deg, rgba(0,229,155,0.08), rgba(0,0,0,0));
}
.cc-section.actionable .cc-section-header { background: rgba(0,229,155,0.10); }
.cc-section.actionable .cc-section-title { color: #00e59b; }

.cc-section.filter {
  border: 1px solid rgba(88,166,255,0.30);
  background: linear-gradient(180deg, rgba(88,166,255,0.06), rgba(0,0,0,0));
}
.cc-section.filter .cc-section-header { background: rgba(88,166,255,0.10); }
.cc-section.filter .cc-section-title { color: #58a6ff; }

.cc-section.reference {
  border: 1px solid rgba(196,163,255,0.25);
  background: rgba(196,163,255,0.03);
}
.cc-section.reference .cc-section-header { background: rgba(196,163,255,0.08); }
.cc-section.reference .cc-section-title { color: #c4a3ff; }

.cc-section.diagnostic {
  border: 1px solid rgba(125,133,144,0.30);
  background: rgba(0,0,0,0.25);
}
.cc-section.diagnostic .cc-section-header { background: rgba(125,133,144,0.10); }
.cc-section.diagnostic .cc-section-title { color: #7d8590; }

/* Evidence Badges — attached above each widget's host */
.cc-widget-wrap {
  margin-bottom: 12px;
  position: relative;
}
.cc-evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 4px 4px 0 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
  margin-bottom: -1px;
  border: 1px solid;
  border-bottom: none;
  position: relative;
  z-index: 2;
}
.cc-evidence-badge.green {
  background: rgba(0,229,155,0.16);
  color: #00e59b;
  border-color: rgba(0,229,155,0.5);
}
.cc-evidence-badge.yellow {
  background: rgba(255,213,79,0.16);
  color: #ffd54f;
  border-color: rgba(255,213,79,0.5);
}
.cc-evidence-badge.red {
  background: rgba(255,92,92,0.14);
  color: #ff8080;
  border-color: rgba(255,92,92,0.4);
}
.cc-evidence-badge.info {
  background: rgba(125,133,144,0.14);
  color: #a4a9b3;
  border-color: rgba(125,133,144,0.35);
}
.cc-evidence-badge .cc-badge-tooltip-trigger {
  cursor: help;
  opacity: 0.7;
  margin-left: 3px;
}
.cc-evidence-badge:hover .cc-badge-tooltip {
  display: block;
}
.cc-badge-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  background: #0d1117;
  border: 1px solid rgba(125,133,144,0.5);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #c9d1d9;
  width: 320px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  white-space: normal;
}
.cc-badge-tooltip b { color: #ffd54f; }
