/*
 * career-popup.css — SINGLE SOURCE OF TRUTH for career detail popup styling.
 * Linked LAST (after each page's own <style>) on career-atlas.html,
 * possibilities-map.html, and index.html so these rules are authoritative.
 * Edit HERE, not in the page <style> blocks.
 * Extracted from career-atlas.html.
 */

.why-list,
.career-meta,
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.why-chip,
.meta-chip,
.tag-chip,
.demand-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
}

.workforce-block {
  margin: 14px 0 4px;
  padding: 14px 16px;
  background: #e8f8fc;
  border-radius: 12px;
  border: 1px solid rgba(51,185,224,.3);
}

.workforce-block h4 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #506078;
}

.workforce-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.workforce-stat {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid rgba(51,185,224,.2);
}

.workforce-stat .ws-num {
  font-size: 18px;
  font-weight: 900;
  color: #0d2d4a;
  line-height: 1;
}

.workforce-stat .ws-label {
  font-size: 10px;
  font-weight: 700;
  color: #506078;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}

.workforce-bar-wrap {
  height: 6px;
  background: rgba(51,185,224,.18);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.workforce-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .4s ease;
}

.workforce-trend-label {
  font-size: 11px;
  font-weight: 700;
  color: #506078;
}

.workforce-trend-label.wt-up { color: #16a34a; }

.workforce-trend-label.wt-down { color: #dc2626; }

.workforce-note {
  font-size: 10px;
  color: #8ea8bb;
  margin-top: 8px;
  font-style: italic;
}

.profile-stats,
.profile-list,
.tuning-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.profile-chip,
.tuning-chip,
.source-link,
.map-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 18px;
  border: 1.5px solid rgba(27,35,61,.18);
  border-radius: 10px;
  background: #fff;
  color: #1b233d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.map-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
}

.map-action.is-saved {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.map-action.is-saved:hover {
  background: #15803d;
  border-color: #15803d;
  box-shadow: 0 4px 16px rgba(22,163,74,.28);
}

.map-action.is-dismissed {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.map-action.is-dismissed:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  box-shadow: 0 4px 16px rgba(220,38,38,.28);
}

/* "Coming soon" state: no simulated quest exists for this career yet */
.map-action.map-action-soon {
  background: #f1f3f7;
  border-color: rgba(27,35,61,.10);
  border-style: dashed;
  color: #8a93a6;
  cursor: default;
}
.map-action.map-action-soon:hover {
  transform: none;
  box-shadow: none;
}
.map-action.map-action-soon em {
  font-style: normal;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b0b7c4;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.75);
}

.modal-overlay.open { display: flex; }

.modal-box {
  width: min(680px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(51,185,224,.20);
  border-radius: 20px;
  background: #fff;
  color: #0d2d4a;
}

.modal-close {
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(13,45,74,.18);
  border-radius: 50%;
  background: transparent;
  color: #0d2d4a;
}

.modal-emoji {
  display: block;
  margin-bottom: 12px;
  font-size: 42px;
}

.modal-label {
  margin-bottom: 8px;
  color: #33b9e0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.modal-title {
  margin-bottom: 14px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(48px, 6vw, 64px);
  line-height: 1.05;
}

.modal-desc,
.modal-funfact {
  margin-top: 16px;
  color: #2a4a62;
  font-size: 16px;
  line-height: 1.55;
}

.modal-funfact {
  padding: 16px;
  border-radius: 8px;
  background: rgba(51,185,224,.07);
  border: 1px solid rgba(51,185,224,.15);
}

.modal-funfact::before {
  content: "Field note: ";
  color: #33b9e0;
  font-weight: 800;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.score-breakdown,
.career-detail-block,
.mini-quest {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(51,185,224,.06);
  border: 1px solid rgba(51,185,224,.12);
}

.mini-quest.mini-quest-soon {
  background: #f1f3f7;
  border-style: dashed;
  border-color: rgba(27,35,61,.10);
}
.mini-quest-soon-msg {
  margin: 0;
  color: #8a93a6;
  font-size: 13px;
  font-weight: 700;
}

.score-breakdown h3,
.career-detail-block h3,
.mini-quest h3 {
  margin-bottom: 10px;
  color: #33b9e0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.career-detail-block p,
.mini-quest p {
  color: #2a4a62;
  line-height: 1.5;
  font-size: 14px;
}

.gender-bar-wrap {margin:4px 0 0;}

.gender-bar-row {display:grid;grid-template-columns:72px 1fr 34px;gap:8px;align-items:center;margin-top:6px;}

.gender-label {font-size:12px;font-weight:700;color:#1a5c7a;}

.gender-bar-track {height:10px;border-radius:999px;background:rgba(51,185,224,.15);overflow:hidden;}

.gender-bar-fill {display:block;height:100%;border-radius:inherit;}

.gender-fill-w {background:linear-gradient(90deg,#e06b9d,#f08fab);}

.gender-fill-m {background:linear-gradient(90deg,#33b9e0,#60d0f0);}

.gender-pct {font-size:13px;font-weight:800;color:#1a5c7a;min-width:34px;}

.gender-source {font-size:11px;color:#4a8eaa;margin-top:8px;margin-bottom:0;}

.workenv-chips {display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}

.workenv-chip {display:inline-flex;align-items:center;padding:6px 14px;border-radius:20px;font-size:13px;font-weight:700;background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0;}

.workenv-chip.wc-social {background:#eef2ff;color:#4338ca;border-color:#c7d2fe;}

.workenv-chip.wc-noise {background:#fffbeb;color:#b45309;border-color:#fde68a;}

.edu-filter-row {display:flex;align-items:flex-start;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(27,35,61,.10);grid-column:1/-1;}

.edu-filter-label {font-size:11px;font-weight:800;color:#4a6374;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;min-width:130px;flex-shrink:0;padding-top:9px;}

.edu-btn,.demand-btn {width:auto!important;min-height:34px!important;padding:4px 13px!important;font-size:12px!important;font-weight:700!important;white-space:nowrap;}

.edu-btn.active {background:#33b9e0;color:#fff;border-color:#33b9e0;}

.edu-badge-card {display:block;text-align:center;font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:2px 6px;border-radius:999px;margin:3px auto 4px;color:#fff;max-width:fit-content;}

.modal-actions {
  margin-top: 16px;
}

.map-action,
.tuning-chip {
  cursor: pointer;
}

.tuning-chip:hover,
.source-link:hover {
  border-color: #33b9e0;
  background: rgba(51,185,224,.12);
  color: #0d6f92;
}

.tuning-panel,
.source-note {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(51,185,224,.14);
  border-radius: 12px;
  background: rgba(51,185,224,.06);
}

.tuning-panel h3,
.source-note h3 {
  margin-bottom: 10px;
  color: #33b9e0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tuning-feedback {
  margin-top: 10px;
  color: #1a6e8c;
  font-size: 13px;
  font-weight: 800;
}

/* Career video bar and theatre mode */
.career-video-bar {
  margin-bottom: 14px;
}

.career-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  border: 1.5px solid rgba(51,185,224,.40);
  border-radius: 8px;
  background: rgba(51,185,224,.08);
  color: #0d6f92;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.career-video-btn:hover {
  background: rgba(51,185,224,.16);
  border-color: #33b9e0;
  transform: translateY(-1px);
}

#career-theatre {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}

#career-theatre.open {
  display: flex;
}

.career-theatre-inner {
  position: relative;
  width: min(900px, 92vw);
  transform: scale(.46);
  opacity: 0;
  transition: transform .34s cubic-bezier(0.16,1,0.3,1), opacity .22s ease;
}

#career-theatre.open .career-theatre-inner {
  transform: scale(1);
  opacity: 1;
}

.career-theatre-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 16px;
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease;
}

.career-theatre-close:hover {
  background: rgba(255,255,255,.20);
}

.career-theatre-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.career-theatre-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}
