/**
 * Trad Tune Explorer - Tune Personality Radar Page Styling
 */

.radar-layout-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
  width: 100%;
  height: calc(100% - 10px);
}

/* Badge mapping for rhythm styles */
.tune-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(138, 180, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(138, 180, 255, 0.2);
}

.details-panel {
  min-height: auto;
}

.chart-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.chart-panel .panelBody {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.detail-row {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.incipit-render-box {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  margin-top: 6px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
}

/* abcjs music notation customization for dark theme */
.incipit-render-box svg {
  background: transparent !important;
}

.incipit-render-box path, 
.incipit-render-box rect, 
.incipit-render-box text {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.incipit-render-box text {
  stroke: none !important;
}

.muted-text {
  color: var(--muted);
  font-size: 14px;
}

/* Container for the radar chart to fill the entire panel space */
.radar-chart-container {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#tune-radar-chart {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Clips panned elements at panel edges */
}

/* Constrain the SVG default size while allowing visible overflow on zoom/pan */
.radar-chart-placeholder svg {
  width: 100% !important;
  height: 100% !important;
  max-width: min(90vw, calc(100vh - 200px)) !important;
  max-height: min(90vw, calc(100vh - 200px)) !important;
  overflow: visible !important;
}

/* Force header subtitle to display on all screen widths */
.header .sub {
  display: block !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  margin-top: 4px !important;
}
