/* MorphoPsiche - Diagnostic Report, Charts & Clinical Presentation */

.report-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Report Header Summary Hero */
.report-hero-card {
  background: linear-gradient(135deg, rgba(21, 34, 56, 0.95), rgba(10, 16, 29, 0.95));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.report-hero-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.typology-headline-tag {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.typology-main-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.typology-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* 3 Facial Planes Visual Breakdown */
.planes-breakdown-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plane-row {
  background: rgba(14, 22, 40, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plane-name-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.plane-icon-box {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.plane-icon-box.cerebral { background: rgba(129, 140, 248, 0.15); border: 1px solid var(--plane-cerebral); }
.plane-icon-box.affective { background: rgba(56, 189, 248, 0.15); border: 1px solid var(--plane-affective); }
.plane-icon-box.instinctive { background: rgba(245, 158, 11, 0.15); border: 1px solid var(--plane-instinctive); }

.plane-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.plane-analogy {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.plane-pct {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.plane-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.plane-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plane-bar-fill.cerebral { background: var(--plane-cerebral); }
.plane-bar-fill.affective { background: var(--plane-affective); }
.plane-bar-fill.instinctive { background: var(--plane-instinctive); }

.plane-desc-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Polarity Balance Track */
.polarity-meter-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.polarity-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
}

.polarity-bar-track {
  position: relative;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-violet) 50%, var(--accent-rose) 100%);
  border-radius: var(--radius-full);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.polarity-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 3px solid var(--gold-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  transition: left 0.4s ease;
}

/* Jungian 5-Node Cross Component */
.jung-cross-container {
  display: grid;
  grid-template-areas: 
    ". top ."
    "left center right"
    ". bottom .";
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem;
  margin: 1rem 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.jung-node {
  background: rgba(14, 22, 40, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.jung-node:hover {
  border-color: var(--gold-primary);
  transform: scale(1.02);
}

.jung-node.top { grid-area: top; border-color: rgba(129, 140, 248, 0.4); }
.jung-node.left { grid-area: left; border-color: rgba(56, 189, 248, 0.4); }
.jung-node.center { 
  grid-area: center; 
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), rgba(14, 22, 40, 0.9));
  border: 1.5px solid var(--gold-primary);
}
.jung-node.right { grid-area: right; border-color: rgba(244, 63, 94, 0.4); }
.jung-node.bottom { grid-area: bottom; border-color: rgba(245, 158, 11, 0.4); }

.jung-role {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.jung-title {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-primary);
}

.jung-planet {
  font-size: 0.70rem;
  color: var(--gold-light);
}

/* Analysis Section Card */
.analysis-section-card {
  background: rgba(14, 22, 40, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.section-tag {
  font-size: 0.68rem;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

/* =========================================================
   CORMAN DIAGNOSTIC WIZARD (OPZIONE 2 - 100% OFFLINE ACCURATE)
   ========================================================= */
.wizard-card {
  background: linear-gradient(135deg, rgba(17, 27, 46, 0.98), rgba(9, 14, 26, 0.98));
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md), 0 0 20px rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wizard-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.85rem;
}

.wizard-steps-indicator {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wizard-step-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.wizard-step-pill.active {
  background: var(--gold-primary);
  color: #0b0f19;
  border-color: var(--gold-light);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.wizard-step-pill.completed {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.wizard-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wizard-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.wizard-step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.wizard-option-btn {
  background: rgba(14, 22, 40, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.wizard-option-btn:hover {
  background: rgba(26, 40, 71, 0.8);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.wizard-option-btn.selected {
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.2);
}

.wizard-option-btn.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--gold-primary);
}

.wizard-opt-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wizard-opt-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 0.1rem;
}

.wizard-opt-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.wizard-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
}

