/* ═══════════════════════════════════════════════════
   Historisk_empati.html Specific Styles
   Historical Empathy Simulator
   Using NLA Design System
*/

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--nla-sand-100);
  border: 1px solid var(--nla-sand-200);
  border-radius: var(--r-pill);
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-small);
  color: var(--history);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── CONCEPT CARD ── */
.concept-card {
  background: var(--nla-ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-8);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .concept-card {
    padding: var(--s-6);
  }
}

@media (min-width: 1024px) {
  .concept-card {
    padding: var(--s-7);
  }
}

.concept-card::after { content: ''; }

.concept-card-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 12px;
}

.concept-card h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-snug);
  margin-bottom: var(--s-5);
  letter-spacing: var(--tracking-tight);
}

.concept-card h2 em {
  font-style: normal;
  font-weight: 400;
  color: var(--nla-green-300);
}

.concept-card p {
  font-size: 0.92rem;
  opacity: 0.8;
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.concept-quote-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.concept-bg-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: #f59e0b;
}

.concept-quote {
  border-left: 3px solid #f59e0b;
  padding-left: 20px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
}

/* ── PROCESS TIMELINE ── */
.timeline {
  margin-bottom: 56px;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--border), var(--accent), var(--history));
}

@media (min-width: 768px) {
  .timeline-line {
    left: 28px;
  }
}

.phase {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
  position: relative;
}

@media (min-width: 768px) {
  .phase {
    gap: 24px;
  }
}

.phase-connector {
  flex-shrink: 0;
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

@media (min-width: 768px) {
  .phase-connector {
    width: 58px;
  }
}

.phase-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.phase-arrow {
  color: var(--muted);
  font-size: 1rem;
  padding: 6px 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.phase-card {
  flex: 1;
  background: var(--nla-sand-50);
  border: 1px solid var(--nla-line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-4);
  margin-bottom: var(--s-1);
  position: relative;
  overflow: hidden;
  transition: all var(--dur-med) var(--ease-out);
}

@media (min-width: 768px) {
  .phase-card {
    padding: var(--s-5) var(--s-6);
  }
}

.phase-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--nla-green-200);
}

.phase-label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  margin-bottom: var(--s-1);
}

.phase-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-bottom: var(--s-2);
  line-height: var(--lh-snug);
  color: var(--nla-ink);
}

.phase-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 12px;
}

.phase-artifact {
  display: flex;
  gap: 10px;
  background: #f9f6f1;
  border-radius: 3px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  align-items: flex-start;
}

.artifact-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.phase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.phase-tag {
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 500;
  background: rgba(28, 25, 23, 0.06);
  color: var(--muted);
}

/* Phase dot colors */
.dot-1 { background: #86efac; }
.dot-2 { background: #93c5fd; }
.dot-3 { background: #fde68a; }
.dot-4 { background: #fca5a5; }
.dot-5 { background: #d8b4fe; }
.dot-6 {
  background: #f59e0b;
  animation: pulse 2s ease-in-out infinite;
}

/* Phase label colors */
.label-1 { color: #2d6a4f; }
.label-2 { color: #1d4ed8; }
.label-3 { color: #92400e; }
.label-4 { color: #c0392b; }
.label-5 { color: #6b21a8; }
.label-6 { color: #d97706; }

/* ── CONVERSATION FLOW ── */
.conv-section { margin-bottom: 56px; }

.conv-card {
  background: var(--step-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
}

.conv-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.conv-card > p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.conv-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.conv-step {
  padding: 14px 12px;
  text-align: center;
  position: relative;
  border-right: 1px solid var(--border);
}

.conv-step:last-child { border-right: none; }

.conv-step-num {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(28, 25, 23, 0.08);
  line-height: 1;
  margin-bottom: 6px;
}

.conv-step-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.conv-step-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── REFLECTIONS ── */
.reflections-section { margin-bottom: 56px; }

.refl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.refl-card {
  background: var(--step-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 22px;
}

.refl-card-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.refl-card.challenge .refl-card-label { color: var(--accent); }
.refl-card.insight .refl-card-label { color: #2d6a4f; }

.refl-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink);
}


/* ── FOOTER ── */
.footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .page { padding: 40px 20px 60px; }
  .conv-steps { grid-template-columns: 1fr; }
  .conv-step { border-right: none; border-bottom: 1px solid var(--border); }
  .refl-grid { grid-template-columns: 1fr; }
  .conn-grid { grid-template-columns: 1fr; }
  .timeline-line { left: 20px; }
  .phase-connector { width: 42px; }
  .phase-dot { width: 12px; height: 12px; }
}
