/* Interview DNA & Candidate Archetype Card Stylesheet v4
   Luxury Spotify-Wrapped Obsidian aesthetic with luminous gradients
   Multi-step scenario wizard, live card preview, and SEO playbook */

/* ========== Layout Wrapper ========== */
.dna-wrap {
  max-width: 1020px;
  margin: 0 auto;
}

/* ========== Scenario Wizard ========== */
.dna-wizard {
  max-width: 680px;
  margin: 0 auto 40px;
}

.dna-progress-bar {
  height: 4px;
  background: var(--hair-2);
  border-radius: var(--r-pill);
  margin-bottom: 28px;
  overflow: hidden;
}

.dna-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366F1, #38BDF8);
  border-radius: var(--r-pill);
  transition: width 0.4s var(--ease);
}

.dna-scenario-card {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-md);
  animation: dna-slide-up 0.35s var(--ease);
}

@keyframes dna-slide-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dna-scenario-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dna-scenario-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.dna-scenario-step {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
}

.dna-scenario-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.dna-scenario-context {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Terminal Telemetry Box (same pattern as Challenge section) */
.dna-terminal {
  background: #0D1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, monospace;
}

.dna-terminal-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dna-terminal-dots {
  display: flex;
  gap: 6px;
}

.dna-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dna-terminal-dot.red { background: #FF5F56; }
.dna-terminal-dot.yellow { background: #FFBD2E; }
.dna-terminal-dot.green { background: #27C93F; }

.dna-terminal-title {
  font-size: 11px;
  color: #8B949E;
  font-weight: 600;
  flex: 1;
}

.dna-terminal-live {
  font-size: 9px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dna-terminal-body {
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.65;
  color: #C9D1D9;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
}

/* Option Cards */
.dna-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dna-option-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--hair-2);
  background: var(--paper);
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
  line-height: 1.55;
  font-family: inherit;
  width: 100%;
}

.dna-option-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.dna-option-btn:active {
  transform: translateY(0);
}

.dna-option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.dna-option-letter {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dna-option-btn.selected .dna-option-letter {
  background: var(--accent);
  color: #FFFFFF;
}

/* Feedback Box (after selection) */
.dna-feedback {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  animation: dna-slide-up 0.25s var(--ease);
}

.dna-feedback-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  margin-bottom: 6px;
}

/* Navigation Buttons */
.dna-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

.dna-nav-btn {
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  border: none;
}

.dna-nav-prev {
  background: var(--paper-2);
  color: var(--ink-3);
  border: 1px solid var(--hair-2);
}

.dna-nav-prev:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.dna-nav-next {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.dna-nav-next:hover {
  background: var(--accent-2);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.dna-nav-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* HUD Controls Row */
.dna-hud-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dna-audio-btn {
  background: none;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-pill);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.dna-audio-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dna-audio-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ========== Results Section ========== */
.dna-results-section {
  display: none;
  animation: dna-slide-up 0.5s var(--ease);
}

.dna-results-section.active {
  display: block;
}

.dna-results-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 860px) {
  .dna-results-grid {
    grid-template-columns: 1fr;
  }
}

/* Radar / Dimension Breakdown Panel */
.dna-breakdown-panel {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.dna-breakdown-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  margin-bottom: 20px;
}

.dna-dim-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.dna-dim-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.dna-dim-score {
  font-weight: 800;
  color: var(--ink);
}

.dna-dim-track {
  width: 100%;
  height: 7px;
  background: var(--paper-3);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.dna-dim-fill {
  height: 100%;
  border-radius: var(--r-pill);
  transition: width 0.6s var(--ease);
}

.fill-arch { background: linear-gradient(90deg, #38BDF8, #6366F1); }
.fill-star { background: linear-gradient(90deg, #F59E0B, #EF4444); }
.fill-pressure { background: linear-gradient(90deg, #10B981, #06B6D4); }
.fill-tradeoff { background: linear-gradient(90deg, #8B5CF6, #EC4899); }
.fill-ownership { background: linear-gradient(90deg, #6366F1, #A855F7); }
.fill-eq { background: linear-gradient(90deg, #EC4899, #F97316); }

/* Strengths & Growth */
.dna-strengths-box {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--ok-soft);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--r-sm);
}

.dna-strengths-box .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ok);
  margin-bottom: 6px;
}

.dna-strengths-box .value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.dna-growth-box {
  margin-top: 10px;
  padding: 16px 18px;
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  border-radius: var(--r-sm);
}

.dna-growth-box .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warn);
  margin-bottom: 6px;
}

.dna-growth-box .value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ========== Archetype Card (Spotify Wrapped Style) ========== */
.archetype-card-container {
  position: sticky;
  top: 90px;
}

.archetype-card {
  background: linear-gradient(150deg, #090D16 0%, #111827 50%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 36px 30px;
  color: #F8FAFC;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
}

.archetype-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.archetype-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.card-brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A5B4FC;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-edition {
  font-size: 11px;
  color: #64748B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #818CF8;
  font-weight: 700;
  margin-bottom: 8px;
}

.archetype-emoji {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}

.archetype-name {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.archetype-desc {
  font-size: 13.5px;
  color: #94A3B8;
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Mini Metric Bars inside Card */
.dna-card-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.dna-card-bar-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dna-card-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #CBD5E1;
  font-weight: 600;
}

.dna-card-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.dna-card-fill {
  height: 100%;
  border-radius: var(--r-pill);
  transition: width 0.5s var(--ease);
}

/* Card Footer Grid */
.card-foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-foot-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.foot-label {
  color: #64748B;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 2px;
}

.foot-val {
  color: #F8FAFC;
  font-weight: 800;
  font-size: 13.5px;
}

/* Interview Advice Box */
.dna-advice-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.dna-advice-box .label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FBBF24;
  margin-bottom: 4px;
}

.dna-advice-box .value {
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.5;
}

/* ========== Action Strip ========== */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* ========== Conversion Bridge ========== */
.dna-conversion-bridge {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

/* ========== SEO Playbook Section ========== */
.dna-playbook-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
}

.playbook-header {
  margin-bottom: 32px;
}

.playbook-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.playbook-header p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 700px;
}

.playbook-card {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.playbook-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.playbook-card-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.playbook-card-body {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

.playbook-card-body p {
  margin-bottom: 10px;
}

.playbook-card-body p:last-child {
  margin-bottom: 0;
}

.playbook-card-body code {
  background: var(--paper-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: 'SF Mono', Menlo, monospace;
}

.playbook-card-body ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.playbook-card-body li {
  margin-bottom: 5px;
}

/* Rubric Comparison Table */
.playbook-rubric-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}

.playbook-rubric-table th {
  background: var(--paper-2);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--hair-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.playbook-rubric-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-2);
  vertical-align: top;
}

.playbook-rubric-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.playbook-faq-item {
  border: 1px solid var(--hair-2);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.playbook-faq-item summary {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  padding: 14px 18px;
  cursor: pointer;
  background: var(--paper);
  list-style: none;
}

.playbook-faq-item summary::-webkit-details-marker {
  display: none;
}

.playbook-faq-item summary::before {
  content: '▸ ';
  color: var(--accent);
}

.playbook-faq-item[open] summary::before {
  content: '▾ ';
}

.playbook-faq-body {
  padding: 12px 18px 16px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  background: var(--surface);
}

/* ========== Responsive ========== */
@media (max-width: 680px) {
  .dna-scenario-card {
    padding: 24px 20px;
  }
  
  .dna-scenario-title {
    font-size: 17px;
  }
  
  .dna-terminal-body {
    font-size: 11px;
    max-height: 160px;
  }
  
  .archetype-card {
    padding: 28px 22px;
  }
  
  .archetype-name {
    font-size: 22px;
  }
  
  .dna-option-btn {
    font-size: 13px;
    padding: 12px 14px;
  }
}
