/* Career Page Styles
   S-tier premium dark theme — Bloomberg Terminal aesthetic
   Individual occupation pages (1,110 O*NET careers)
*/
@import url('./design-tokens.css');
@import url('./header-premium.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  background: var(--bg-void, #0a0c10);
  color: var(--text-primary, #e7e9ea);
  line-height: var(--leading-normal, 1.5);
  padding-top: 48px;
  -webkit-font-smoothing: antialiased;
}
html {
  background: #0a0c10;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll Reveal — staggered entrance */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: var(--text-sm, 13px);
  color: var(--text-muted, #6e767d);
}
.breadcrumb a {
  color: var(--text-secondary, #9ca3af);
  text-decoration: none;
  transition: color var(--transition-fast, 0.15s);
}
.breadcrumb a:hover {
  color: var(--color-primary, #d4a012);
}
.breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.4;
}
.breadcrumb-current {
  color: var(--text-primary, #e7e9ea);
  font-weight: var(--font-medium, 500);
}

/* Hero with animated glow */
.hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(212, 160, 18, 0.08) 0%, transparent 70%);
  pointer-events: none;
  will-change: opacity, transform;
  animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.1);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: var(--font-semibold, 600);
  color: var(--color-primary, #d4a012);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary, #d4a012);
  will-change: opacity, box-shadow;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(212, 160, 18, 0.4);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(212, 160, 18, 0);
  }
}

.hero h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: var(--font-extrabold, 800);
  color: var(--text-primary, #e7e9ea);
  margin-bottom: 10px;
  letter-spacing: var(--tracking-tight, -0.02em);
  line-height: 1.15;
}
.hero-soc {
  font-family: var(--font-mono, monospace);
  font-size: var(--text-sm, 13px);
  color: var(--text-muted, #6e767d);
  margin-bottom: 12px;
}
.hero-description {
  font-size: var(--text-base, 15px);
  color: var(--text-secondary, #9ca3af);
  line-height: var(--leading-relaxed, 1.6);
  max-width: 580px;
}

/* Badges row */
.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full, 9999px);
  font-size: 12px;
  font-weight: var(--font-semibold, 600);
  letter-spacing: 0.02em;
}
.badge-green {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--color-success, #22c55e);
}
.badge-zone {
  background: var(--color-primary-alpha-10, rgba(212, 160, 18, 0.1));
  border: 1px solid rgba(212, 160, 18, 0.2);
  color: var(--color-primary, #d4a012);
}
.badge-group {
  background: var(--color-secondary-alpha-10, rgba(74, 158, 255, 0.1));
  border: 1px solid rgba(74, 158, 255, 0.2);
  color: var(--color-secondary, #4a9eff);
}
.badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.stat-card {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-surface, #12151a);
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  transition: all 0.25s var(--ease-out, cubic-bezier(0, 0, 0.2, 1));
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-btn-gold, linear-gradient(135deg, #b8860b, #d4a012, #e8b71e));
  opacity: 0;
  transition: opacity 0.25s;
}
.stat-card:hover {
  border-color: rgba(212, 160, 18, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-value {
  font-family: var(--font-data, var(--font-mono));
  font-size: 28px;
  font-weight: var(--font-bold, 700);
  color: var(--color-primary, #d4a012);
  margin-bottom: 4px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted, #6e767d);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Sections */
.section {
  margin-bottom: 56px;
}
.section-title {
  font-size: var(--text-xl, 20px);
  font-weight: var(--font-semibold, 600);
  color: var(--text-primary, #e7e9ea);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Section color accents — scannable vertical rhythm */
.section-title.skills {
  border-left: 2px solid var(--color-primary, #d4a012);
  padding-left: 12px;
}
.section-title.knowledge {
  border-left: 2px solid var(--color-secondary, #4a9eff);
  padding-left: 12px;
}
.section-title.tasks {
  border-left: 2px solid var(--text-muted, #6e767d);
  padding-left: 12px;
}
.section-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary, #d4a012);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.title-count {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: var(--font-medium, 500);
  color: var(--text-muted, #6e767d);
  background: var(--bg-elevated, #181c24);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Skill Bars — label fixed, bar grows, numeric score at end */
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-item {
  display: grid;
  grid-template-columns: 180px 1fr 32px;
  align-items: center;
  gap: 12px;
}
.skill-name {
  font-size: var(--text-sm, 13px);
  color: var(--text-primary, #e7e9ea);
  font-weight: var(--font-medium, 500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skill-bar-wrap {
  position: relative;
}
.skill-bar-bg {
  height: 8px;
  background: var(--bg-elevated, #181c24);
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
  position: relative;
}
/* Average reference line at 3.0/5.0 = 60% */
.skill-bar-bg::after {
  content: '';
  position: absolute;
  left: 60%;
  top: -1px;
  bottom: -1px;
  width: 1px;
  background: var(--border-default, rgba(255, 255, 255, 0.1));
  pointer-events: none;
}
.skill-bar {
  height: 100%;
  border-radius: var(--radius-full, 9999px);
  background: var(--gradient-btn-gold, linear-gradient(90deg, #b8860b, #d4a012, #e8b71e));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out, cubic-bezier(0, 0, 0.2, 1));
}
.skill-bar.knowledge {
  background: var(--gradient-secondary, linear-gradient(135deg, #2080e0, #4a9eff, #7fb5ff));
}
.skill-bar.animated {
  /* JS sets transform: scaleX(value) */
}
.skill-score {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-muted, #6e767d);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Tasks */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.task-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-surface, #12151a);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-md, 8px);
  font-size: var(--text-sm, 13px);
  color: var(--text-secondary, #9ca3af);
  line-height: 1.5;
  transition: border-color 0.2s;
}
.task-item:hover {
  border-color: rgba(212, 160, 18, 0.2);
}
.task-num {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: var(--font-bold, 700);
  color: var(--color-primary, #d4a012);
  background: var(--color-primary-alpha-10, rgba(212, 160, 18, 0.1));
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm, 4px);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Tags — alt titles, tools, categories */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--bg-surface, #12151a);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-full, 9999px);
  font-size: var(--text-sm, 13px);
  color: var(--text-primary, #e7e9ea);
  transition: all 0.2s;
}
.tag:hover {
  border-color: rgba(212, 160, 18, 0.2);
  transform: translateY(-1px);
}
.tag-category {
  background: var(--color-primary-alpha-10, rgba(212, 160, 18, 0.1));
  border-color: rgba(212, 160, 18, 0.2);
  color: var(--color-primary, #d4a012);
  font-weight: var(--font-medium, 500);
  text-decoration: none;
}
.tag-tool {
  background: var(--color-secondary-alpha-10, rgba(74, 158, 255, 0.1));
  border-color: rgba(74, 158, 255, 0.15);
  color: var(--color-secondary, #4a9eff);
}

/* Cross-links grid */
.crosslinks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.crosslink-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-surface, #12151a);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  color: var(--text-primary, #e7e9ea);
  transition: all 0.2s;
}
.crosslink-card:hover {
  border-color: rgba(212, 160, 18, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.crosslink-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-alpha-10, rgba(212, 160, 18, 0.1));
  border: 1px solid rgba(212, 160, 18, 0.15);
  border-radius: var(--radius-md, 8px);
  flex-shrink: 0;
  color: var(--color-primary, #d4a012);
}
.crosslink-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.crosslink-icon.blue {
  background: var(--color-secondary-alpha-10, rgba(74, 158, 255, 0.1));
  border-color: rgba(74, 158, 255, 0.15);
  color: var(--color-secondary, #4a9eff);
}
.crosslink-icon.green {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.15);
  color: var(--color-success, #22c55e);
}
.crosslink-text {
  flex: 1;
  min-width: 0;
}
.crosslink-title {
  font-size: var(--text-sm, 13px);
  font-weight: var(--font-semibold, 600);
  margin-bottom: 2px;
}
.crosslink-desc {
  font-size: 12px;
  color: var(--text-muted, #6e767d);
}

/* Related occupations */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-surface, #12151a);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.related-card:hover {
  border-color: rgba(74, 158, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.related-card-soc {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-muted, #6e767d);
  background: var(--bg-elevated, #181c24);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.related-card-title {
  font-size: var(--text-sm, 13px);
  font-weight: var(--font-medium, 500);
  color: var(--text-primary, #e7e9ea);
}

/* Data Sources */
.data-sources {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  margin-top: 8px;
}
.data-sources a {
  font-size: 12px;
  color: var(--text-muted, #6e767d);
  text-decoration: none;
  transition: color var(--transition-fast, 0.15s);
}
.data-sources a:hover {
  color: var(--text-secondary, #9ca3af);
}

/* CTA */
.cta-section {
  position: relative;
  background: var(--bg-surface, #12151a);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-lg, 12px);
  padding: 56px 32px;
  text-align: center;
  margin-top: 64px;
  margin-bottom: 48px;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(212, 160, 18, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: var(--text-2xl, 24px);
  font-weight: var(--font-bold, 700);
  margin-bottom: 10px;
  position: relative;
}
.cta-text {
  font-size: var(--text-base, 15px);
  color: var(--text-secondary, #9ca3af);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: var(--text-sm, 13px);
  font-weight: var(--font-semibold, 600);
  text-decoration: none;
  transition: all 0.2s var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gradient-btn-gold, linear-gradient(135deg, #b8860b, #d4a012, #e8b71e));
  color: #fff;
  box-shadow: var(--shadow-btn-primary, 0 4px 16px rgba(212, 160, 18, 0.3));
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-primary-hover, 0 8px 24px rgba(212, 160, 18, 0.4));
  filter: brightness(1.1);
}
.btn-secondary {
  background: var(--bg-elevated, #181c24);
  color: var(--text-primary, #e7e9ea);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.1));
}
.btn-secondary:hover {
  border-color: var(--color-primary-alpha-40, rgba(212, 160, 18, 0.4));
  background: var(--bg-overlay-subtle, #1e232d);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  padding: 32px 0;
  margin-top: 48px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: var(--text-base, 15px);
  font-weight: var(--font-bold, 700);
  color: var(--text-primary, #e7e9ea);
  text-decoration: none;
}
.footer-logo span {
  color: var(--color-primary, #d4a012);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-link {
  color: var(--text-muted, #6e767d);
  text-decoration: none;
  font-size: var(--text-sm, 13px);
  transition: color var(--transition-fast, 0.15s);
}
.footer-link:hover {
  color: var(--text-primary, #e7e9ea);
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted, #6e767d);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 32px 0;
  }
  .hero h1 {
    font-size: 22px;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat-card {
    padding: 14px 10px;
  }
  .stat-value {
    font-size: 22px;
  }
  .skill-item {
    grid-template-columns: 140px 1fr 28px;
    gap: 8px;
  }
  .crosslinks {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .cta-section {
    padding: 32px 20px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 20px;
  }
  .hero-badges {
    gap: 6px;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .skill-item {
    grid-template-columns: 1fr 80px 28px;
    gap: 6px;
  }
  .skill-name {
    font-size: 12px;
  }
}

/* Print */
@media print {
  .hero::before,
  .bomatlas-header,
  .cta-section,
  .footer {
    display: none;
  }
  body {
    background: #fff;
    color: #111;
    padding-top: 0;
  }
  .hero {
    border-bottom: 1px solid #ccc;
  }
  .stat-card {
    border: 1px solid #ccc;
    background: #f9f9f9;
  }
  .stat-value {
    color: #111;
  }
  .skill-bar {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .badge {
    border: 1px solid #999;
  }
}
