/* ═══════════════════════════════════════════════════════════════
   OmicsLab — Career Pathfinder styles
   ═══════════════════════════════════════════════════════════════ */

.cp-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── Header ─── */
.cp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cp-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(188,140,255,0.12);
  border: 1px solid rgba(188,140,255,0.3);
  color: #bc8cff;
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.cp-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #e6edf3;
  margin: 0 0 0.4rem;
}
.cp-subtitle {
  color: #8b949e;
  font-size: 0.9rem;
  max-width: 520px;
  line-height: 1.5;
}
.cp-stats-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}
.cp-path-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--cp-color, #bc8cff);
  border-radius: 8px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  color: #8b949e;
  white-space: nowrap;
}

/* ─── Quiz ─── */
.cp-quiz {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}
.cp-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cp-progress-bar {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}
.cp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #bc8cff, #58a6ff);
  border-radius: 100px;
  transition: width 0.35s ease;
}
.cp-progress-label {
  font-size: 0.75rem;
  color: #6e7681;
  white-space: nowrap;
}

.cp-question-card {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
}
.cp-q-icon { display:flex;align-items:center;margin-bottom:0.75rem;color:var(--text-muted,#8b949e); }
.cp-q-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
.cp-q-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.cp-option {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}
.cp-option:hover { border-color: rgba(188,140,255,0.35); background: rgba(188,140,255,0.05); }
.cp-option.selected {
  border-color: #bc8cff;
  background: rgba(188,140,255,0.08);
}
.cp-opt-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s;
}
.cp-option.selected .cp-opt-radio {
  border-color: #bc8cff;
  background: #bc8cff;
  box-shadow: 0 0 0 3px rgba(188,140,255,0.2);
}
.cp-opt-label {
  font-size: 0.875rem;
  color: #8b949e;
  line-height: 1.4;
  transition: color 0.15s;
}
.cp-option.selected .cp-opt-label { color: #e6edf3; }

.cp-q-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cp-btn-back {
  background: none;
  border: none;
  color: #6e7681;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color 0.12s;
}
.cp-btn-back:hover { color: #c9d1d9; }
.cp-btn-next {
  background: #bc8cff;
  border: none;
  border-radius: 8px;
  color: #0d1117;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.cp-btn-next:hover:not(:disabled) { opacity: 0.88; transform: scale(1.02); }
.cp-btn-next:disabled { opacity: 0.35; cursor: not-allowed; }

/* ─── Result ─── */
.cp-result {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cp-result-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(var(--cp-color-rgb, 188,140,255), 0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--cp-color, #bc8cff);
  border-radius: 14px;
  padding: 1.5rem;
  flex-wrap: wrap;
}
.cp-result-icon { display:flex;align-items:center;flex-shrink:0;color:var(--text-muted,#8b949e); }
.cp-result-match {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cp-color, #bc8cff);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.cp-result-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #e6edf3;
  margin: 0 0 0.25rem;
}
.cp-result-tagline { color: #8b949e; font-size: 0.88rem; }
.cp-retry-btn {
  margin-left: auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #8b949e;
  font-size: 0.78rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  transition: background 0.12s, color 0.12s;
}
.cp-retry-btn:hover { background: rgba(255,255,255,0.1); color: #c9d1d9; }

/* Score bars */
.cp-score-section {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1.25rem;
}
.cp-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.875rem;
}
.cp-score-bars { display: flex; flex-direction: column; gap: 0.7rem; }
.cp-score-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cp-score-icon { display:flex;align-items:center;flex-shrink:0;color:var(--text-muted,#8b949e); }
.cp-score-name { font-size: 0.78rem; color: #8b949e; min-width: 180px; }
.cp-score-bar-wrap {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}
.cp-score-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.6s ease;
}
.cp-score-pct { font-size: 0.72rem; color: #6e7681; min-width: 34px; text-align: right; }

/* Details grid */
.cp-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 840px) {
  .cp-details-grid { grid-template-columns: 1fr; }
}

.cp-details-left, .cp-details-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cp-detail-card {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1.25rem;
}
.cp-detail-desc { font-size: 0.82rem; color: #8b949e; line-height: 1.6; margin: 0 0 1rem; }
.cp-quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cp-qs-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.cp-qs-label { display: block; font-size: 0.62rem; color: #6e7681; text-transform: uppercase; letter-spacing: 0.06em; }
.cp-qs-val { font-size: 0.8rem; font-weight: 700; color: #e6edf3; }
.cp-emp-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.cp-emp-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.7rem;
  color: #8b949e;
  padding: 2px 9px;
}

/* Steps */
.cp-steps { display: flex; flex-direction: column; gap: 0.75rem; }
.cp-step { display: flex; align-items: flex-start; gap: 0.75rem; }
.cp-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cp-step-text { font-size: 0.8rem; color: #8b949e; line-height: 1.5; padding-top: 2px; }

/* Skills */
.cp-skills-list { display: flex; flex-direction: column; gap: 0.6rem; }
.cp-skill-row { display: flex; flex-direction: column; gap: 4px; }
.cp-skill-info { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cp-skill-name { font-size: 0.78rem; color: #c9d1d9; }
.cp-skill-level {
  font-size: 0.62rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
.cp-level-essential   { background: rgba(63,185,80,0.1);  color: #3fb950; border: 1px solid rgba(63,185,80,0.2); }
.cp-level-intermediate{ background: rgba(88,166,255,0.1); color: #58a6ff; border: 1px solid rgba(88,166,255,0.2); }
.cp-level-advanced    { background: rgba(249,115,22,0.1); color: #f97316; border: 1px solid rgba(249,115,22,0.2); }
.cp-skill-bar-wrap {
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  height: 4px;
  overflow: hidden;
}
.cp-skill-bar-fill {
  height: 100%;
  border-radius: 100px;
  opacity: 0.7;
}

/* Certifications */
.cp-cert-list { display: flex; flex-direction: column; gap: 0.5rem; }
.cp-cert-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  color: #8b949e;
  font-size: 0.78rem;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.cp-cert-item:hover { background: rgba(255,255,255,0.07); color: #c9d1d9; border-color: rgba(255,255,255,0.12); }
.cp-cert-icon { flex-shrink: 0; color: #bc8cff; }
.cp-cert-item span { flex: 1; }
.cp-cert-arrow { color: #6e7681; flex-shrink: 0; }

/* Also consider */
.cp-also-list { display: flex; flex-direction: column; gap: 0.6rem; }
.cp-also-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--cp-color, #bc8cff);
  border-radius: 10px;
  padding: 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
}
.cp-also-card:hover { background: rgba(255,255,255,0.06); border-color: var(--cp-color, #bc8cff); }
.cp-also-icon { display:flex;align-items:center;flex-shrink:0;color:var(--text-muted,#8b949e); }
.cp-also-title { font-size: 0.82rem; font-weight: 700; color: #e6edf3; }
.cp-also-tagline { font-size: 0.72rem; color: #6e7681; line-height: 1.3; margin-top: 2px; }

/* ─── Responsive ─── */
@media (max-width: 680px) {
  .cp-wrap { padding: 2rem 1rem; }
  .cp-title { font-size: 1.4rem; }
  .cp-header { flex-direction: column; }
  .cp-stats-row { flex-direction: row; flex-wrap: wrap; }
  .cp-path-pill { flex: 1; min-width: 120px; }
  .cp-quick-stats { grid-template-columns: 1fr; }
  .cp-score-name { min-width: 110px; font-size: 0.7rem; }
}
