/* ==========================================================================
   6. Macro Statistical Analysis & 17 Charts Presentation Styles
   ========================================================================== */
.section-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 34px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}

.section-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topic-number-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-light));
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 8px var(--border-glow);
}

.section-header-title h2, .section-header-title h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-header-title p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

.chart-presentation-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.chart-presentation-card:hover {
  border-color: var(--brand-teal-light);
  box-shadow: var(--shadow-md);
}

.chart-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-badge-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-teal);
}

[data-theme="dark"] .chart-badge-title {
  color: var(--brand-gold);
}

.chart-id-tag {
  background: var(--brand-gold-light);
  color: #856404;
  border: 1px solid var(--brand-gold-border);
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.chart-image-frame {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  text-align: center;
  cursor: zoom-in;
  overflow: hidden;
}

.chart-image-frame img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

.chart-image-frame:hover img {
  transform: scale(1.01);
}

.chart-zoom-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.deep-explanation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .deep-explanation-grid {
    grid-template-columns: 1fr;
  }
}

.explanation-box {
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
}

.box-data-breakdown {
  background: var(--data-blue-soft);
  border-color: var(--data-blue-border);
}

.box-business-benefit {
  background: var(--benefit-green-soft);
  border-color: var(--benefit-green-border);
}

.box-technical-audit {
  background: var(--warning-amber-soft);
  border-color: var(--warning-amber-border);
}

.box-risk-alert {
  background: var(--danger-red-soft);
  border-color: var(--danger-red-border);
}

.explanation-box-header {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.box-data-breakdown .explanation-box-header { color: #0369a1; }
.box-business-benefit .explanation-box-header { color: #047857; }
.box-technical-audit .explanation-box-header { color: #b45309; }
.box-risk-alert .explanation-box-header { color: #b91c1c; }

[data-theme="dark"] .box-data-breakdown .explanation-box-header { color: #38bdf8; }
[data-theme="dark"] .box-business-benefit .explanation-box-header { color: #34d399; }
[data-theme="dark"] .box-technical-audit .explanation-box-header { color: #fbbf24; }
[data-theme="dark"] .box-risk-alert .explanation-box-header { color: #f87171; }

.explanation-content {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.explanation-content ul {
  margin-right: 20px;
  margin-top: 8px;
}

.explanation-content li {
  margin-bottom: 6px;
}

.decision-badge {
  display: inline-block;
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid var(--border-color);
  margin-left: 6px;
  color: var(--text-primary);
}
