/* ============================================
   BIGBEN ACADEMY - INTERACTIVE COMPONENTS
   Process Steps, Checklists, Mini Scenarios, Reveal Cards
   ============================================ */

/* === Base Interactive Block === */
.interactive-block {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-alt, #f8f9fa);
  border: 1px solid var(--border, #e5e7eb);
}

.interactive-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.interactive-block__header h3 {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body, 'Manrope', sans-serif);
  color: var(--text-primary, #1a1a2e);
  margin: 0;
}

.interactive-block__hint {
  font-size: 13px;
  color: var(--text-muted, #9ca3af);
  display: flex;
  align-items: center;
  gap: 6px;
}

.interactive-block__hint i { width: 16px; height: 16px; }
.interactive-block__content { padding: 24px; }

/* === Reveal Cards === */
.reveal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.reveal-card {
  background: white;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.reveal-card:hover {
  border-color: var(--primary, #ed538a);
  box-shadow: 0 8px 30px rgba(237, 83, 138, 0.08);
  transform: translateY(-2px);
}

.reveal-card--expanded {
  border-color: var(--primary, #ed538a);
  background: rgba(237, 83, 138, 0.04);
}

.reveal-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(237, 83, 138, 0.08);
  border-radius: 10px;
  margin-bottom: 12px;
  color: var(--primary, #ed538a);
}
.reveal-card__icon i { width: 24px; height: 24px; }
.reveal-card__title { font-size: 16px; font-weight: 700; color: var(--text-primary, #1a1a2e); margin-bottom: 4px; }
.reveal-card__short { font-size: 14px; color: var(--text-secondary, #6b7280); line-height: 1.5; }

.reveal-card__detail {
  display: none;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: 14px; color: var(--text-secondary, #6b7280); line-height: 1.6;
  animation: academyFadeUp 0.3s ease;
}

.reveal-card--expanded .reveal-card__detail { display: block; }

.reveal-card__toggle {
  position: absolute; top: 12px; right: 12px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted, #9ca3af);
  transition: transform 0.2s ease;
}
.reveal-card__toggle i { width: 16px; height: 16px; }
.reveal-card--expanded .reveal-card__toggle { transform: rotate(180deg); color: var(--primary, #ed538a); }

/* === Checklist === */
.interactive-checklist { display: flex; flex-direction: column; gap: 12px; }

.checklist-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; background: white;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 12px; cursor: pointer;
  transition: all 0.2s ease;
}
.checklist-item:hover { border-color: var(--primary, #ed538a); }
.checklist-item--checked { border-color: #22c55e; background: #f0fdf4; }

.checklist-item__checkbox {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 6px;
  transition: all 0.2s ease;
  color: transparent;
}
.checklist-item--checked .checklist-item__checkbox { background: #22c55e; border-color: #22c55e; color: white; }
.checklist-item__checkbox i { width: 14px; height: 14px; }
.checklist-item__title { font-size: 15px; font-weight: 600; color: var(--text-primary, #1a1a2e); margin-bottom: 4px; }
.checklist-item--checked .checklist-item__title { color: #166534; }
.checklist-item__description { font-size: 14px; color: var(--text-secondary, #6b7280); line-height: 1.5; }

.checklist-progress {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: white;
  border-radius: 12px; margin-top: 16px;
}

.checklist-progress__bar { flex: 1; height: 8px; background: var(--border, #e5e7eb); border-radius: 4px; overflow: hidden; }
.checklist-progress__fill { height: 100%; background: #22c55e; border-radius: 4px; transition: width 0.3s ease; }
.checklist-progress__text { font-size: 14px; font-weight: 600; color: var(--text-secondary, #6b7280); min-width: 60px; text-align: right; }

/* === Process Steps === */
.process-steps { position: relative; }

.process-steps__line {
  position: absolute;
  left: 23px; top: 48px; bottom: 48px;
  width: 2px; background: var(--border, #e5e7eb);
}

.process-step {
  display: flex; gap: 20px; padding: 20px 0;
  position: relative; z-index: 1;
  opacity: 0; transform: translateX(-20px);
  transition: all 0.4s ease;
}

.process-step.in-view { opacity: 1; transform: translateX(0); }

.process-step__number {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: white; border: 2px solid var(--border, #e5e7eb);
  border-radius: 50%; font-size: 18px; font-weight: 700;
  color: var(--text-muted, #9ca3af); flex-shrink: 0;
  transition: all 0.2s ease;
}

.process-step.in-view .process-step__number {
  border-color: var(--primary, #ed538a);
  color: var(--primary, #ed538a);
  background: rgba(237, 83, 138, 0.06);
}

.process-step__content { flex: 1; padding-top: 4px; }

.process-step__header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.process-step__title { font-size: 16px; font-weight: 700; color: var(--text-primary, #1a1a2e); }

.process-step__badge {
  font-size: 12px; font-weight: 600;
  color: var(--primary, #ed538a);
  background: rgba(237, 83, 138, 0.08);
  padding: 3px 10px; border-radius: 6px;
}

.process-step__description { font-size: 14px; color: var(--text-secondary, #6b7280); line-height: 1.6; margin: 0 0 8px 0; }
.process-step__detail { font-size: 14px; color: var(--text-secondary, #6b7280); line-height: 1.6; margin: 0 0 12px 0; }

.process-step__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.process-step__tag {
  font-size: 13px; color: var(--text-muted, #9ca3af);
  background: white; padding: 6px 12px;
  border-radius: 6px; border: 1px solid var(--border, #e5e7eb);
}

/* === Mini Scenario === */
.mini-scenario--flat { background: transparent; border: none; border-radius: 0; padding: 0; }

.mini-scenario__question {
  font-size: 17px; font-weight: 600;
  color: var(--text-primary, #1a1a2e);
  margin-bottom: 16px; line-height: 1.5;
}

.mini-scenario__options { display: flex; flex-direction: column; gap: 10px; }

.mini-scenario__option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: white;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 10px; cursor: pointer;
  transition: all 0.2s ease;
}

.mini-scenario__option:hover { border-color: var(--primary, #ed538a); }
.mini-scenario__option--correct { border-color: #22c55e; background: #f0fdf4; }
.mini-scenario__option--wrong { border-color: #ef4444; background: #fef2f2; }
.mini-scenario__option--disabled { pointer-events: none; }

.mini-scenario__option-indicator {
  width: 20px; height: 20px;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}

.mini-scenario__option--selected .mini-scenario__option-indicator { border-color: var(--primary, #ed538a); background: var(--primary, #ed538a); color: white; }
.mini-scenario__option--correct .mini-scenario__option-indicator { border-color: #22c55e; background: #22c55e; color: white; }
.mini-scenario__option--wrong .mini-scenario__option-indicator { border-color: #ef4444; background: #ef4444; color: white; }
.mini-scenario__option-indicator i { width: 12px; height: 12px; }
.mini-scenario__option-text { font-size: 15px; color: var(--text-primary, #1a1a2e); }

.mini-scenario__feedback {
  margin-top: 16px; padding: 16px; border-radius: 10px;
  font-size: 14px; line-height: 1.6; display: none;
}

.mini-scenario__feedback--visible { display: block; animation: academyFadeUp 0.3s ease; }
.mini-scenario__feedback--correct { background: #f0fdf4; color: #166534; border: 1px solid #22c55e; }
.mini-scenario__feedback--wrong { background: #fef2f2; color: #991b1b; border: 1px solid #ef4444; }

/* === Accent Blocks === */
.accent-block {
  display: flex; align-items: flex-start; gap: 20px;
  margin: 32px 0; padding: 24px; border-radius: 16px; border-left: 4px solid;
}

.accent-block--warning { background: linear-gradient(135deg, #fef2f2, #fff7ed); border-left-color: #ef4444; }
.accent-block--success { background: linear-gradient(135deg, #f0fdf4, #ecfdf5); border-left-color: #22c55e; }
.accent-block--insight { background: linear-gradient(135deg, #fff5f8, #fef6f9); border-left-color: var(--primary, #ed538a); }

.accent-block__icon {
  flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; border-radius: 12px;
}
.accent-block--warning .accent-block__icon { background: #ef4444; color: white; }
.accent-block--success .accent-block__icon { background: #22c55e; color: white; }
.accent-block--insight .accent-block__icon { background: var(--primary, #ed538a); color: white; }
.accent-block__icon i { width: 24px; height: 24px; }
.accent-block__content { flex: 1; }
.accent-block__title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.accent-block--warning .accent-block__title { color: #991b1b; }
.accent-block--success .accent-block__title { color: #166534; }
.accent-block--insight .accent-block__title { color: #be185d; }
.accent-block__text { font-size: 14px; line-height: 1.6; color: var(--text-secondary, #6b7280); }

/* === Animations === */
@keyframes academyFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Benchmark Comparison Widget === */
.bench-comp { padding: 4px 0; }

.bench-comp__input-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}

.bench-comp__label { font-size: 15px; font-weight: 600; color: var(--text-primary, #1a1a2e); }

.bench-comp__value {
  font-size: 20px; font-weight: 800; color: var(--primary, #ed538a);
  font-family: var(--font-body, 'Manrope', sans-serif);
}

.bench-comp__slider {
  width: 100%; height: 8px; -webkit-appearance: none; appearance: none;
  background: var(--border, #e5e7eb); border-radius: 4px; outline: none;
  margin-bottom: 8px;
}

.bench-comp__slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px;
  background: var(--primary, #ed538a); border-radius: 50%;
  cursor: pointer; border: 3px solid white;
  box-shadow: 0 2px 8px rgba(237, 83, 138, 0.3);
}

.bench-comp__track {
  position: relative; height: 12px; background: #fee2e2;
  border-radius: 6px; margin-bottom: 8px; overflow: visible;
}

.bench-comp__zone {
  position: absolute; top: 0; height: 100%; border-radius: 6px;
}

.bench-comp__zone--normal { background: rgba(34, 197, 94, 0.25); }

.bench-comp__marker {
  position: absolute; top: -4px; width: 3px; height: 20px;
  background: #1a1a2e; border-radius: 2px; transform: translateX(-50%);
}

.bench-comp__labels {
  display: flex; justify-content: space-between; font-size: 11px; color: #9ca3af;
  margin-bottom: 12px;
}

.bench-comp__median-label { font-weight: 600; color: #6b7280; }

.bench-comp__verdict {
  font-size: 14px; font-weight: 600; padding: 8px 14px;
  border-radius: 8px; text-align: center;
}

.bench-comp__verdict--normal { background: #f0fdf4; color: #166534; }
.bench-comp__verdict--low { background: #fef3c7; color: #92400e; }
.bench-comp__verdict--high { background: #fef3c7; color: #92400e; }

.bench-comp__source {
  font-size: 11px; color: #9ca3af; text-align: center; margin-top: 8px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .interactive-block__header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .reveal-cards { grid-template-columns: 1fr; }
  .process-steps__line { left: 19px; }
  .process-step__number { width: 40px; height: 40px; font-size: 16px; }
  .accent-block { flex-direction: column; gap: 12px; }
  .accent-block__icon { width: 40px; height: 40px; }
}
