/* --- Career Page Styles --- */
/* Extracted from proven data_scientist.php design */

/* --- Base Styles & Variables --- */
:root {
  --bg-color: #ffffff;
  --text-color: #212529;
  --muted-bg: #f8f9fa;
  --border-color: #e9ecef;
  --accent-color: #fd7e14;
  --accent-hover: #e87312;
  --accent-light: #fff7ed;
  --header-bg: #212529;
  --header-fg: #f8f9fa;
  --success-color: #16a34a;
  --success-bg: #dcfce7;
  --error-color: #dc2626;
  --error-bg: #fee2e2;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
}

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

/* --- Header & Footer --- */
.site-header {
  background: var(--header-bg);
  color: var(--header-fg);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 60;
  gap: 0.5rem;
  border-bottom: 3px solid var(--accent-color);
}

.logo {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.logo::before {
  content: '🎯';
  font-size: 1.1rem;
}

.logo:hover {
  color: #fff;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-header nav a {
  color: #adb5bd;
  text-decoration: none;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.site-header nav a:hover {
  color: #fff;
  border-color: var(--accent-color);
  background: rgba(253, 126, 20, 0.1);
}

.site-footer {
  background: var(--header-bg);
  color: var(--header-fg);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.site-footer a {
  color: var(--accent-color);
}

/* --- Compact Hero Banner --- */
.hero-banner {
  background: var(--header-bg);
  color: white;
  padding: 0.75rem 1rem;
  border-bottom: 3px solid var(--accent-color);
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.hero-emoji {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.hero-text {
  min-width: 0;
}

.hero-text h1 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: white;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-tagline {
  font-size: 0.7rem;
  opacity: 0.8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-stats {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.stat {
  text-align: center;
  padding: 0.25rem 0.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  min-width: 55px;
}

.stat-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: #22d3ee;
  display: block;
}

.stat-label {
  font-size: 0.5rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* --- Quick Nav (inline) --- */
.quick-nav {
  background: var(--muted-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0.35rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

.quick-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.quick-nav a {
  font-size: 0.7rem;
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  transition: all 0.2s;
}

.quick-nav a:hover {
  color: var(--accent-color);
  background: var(--accent-light);
}

/* --- Typography --- */
.breadcrumbs {
  margin: 1.5rem 0 1rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--accent-color);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.intro {
  font-size: 1.1rem;
  color: #495057;
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

section {
  margin-bottom: 2rem;
}

p {
  margin-bottom: 1rem;
}

strong {
  font-weight: 600;
}

/* --- Role Cards --- */
.role-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.role-card {
  background: var(--muted-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.role-card h3 {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.role-card .role-icon {
  font-size: 1.5rem;
}

.role-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: #495057;
}

.role-card .role-pct {
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 0.5rem;
  display: block;
}

/* --- Comparison / Regional Cards --- */
.comparison-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: var(--muted-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin: 1rem 0;
}

.region-item h3 {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.region-item p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.region-item .challenges {
  color: #6c757d;
  font-style: italic;
}

/* --- Quote Block --- */
.quote-block {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-left: 4px solid var(--accent-color);
  background-color: var(--muted-bg);
  border-radius: 0 8px 8px 0;
}

.quote-block p {
  font-style: italic;
  color: #495057;
  margin: 0;
}

/* --- Story Block (Week in Life) --- */
.story-block {
  background: var(--muted-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.story-block h4 {
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}

.story-block h4:first-child {
  margin-top: 0;
}

.story-block p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Interactive Cloud (Glossary/Software) --- */
.interactive-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  padding: 1rem 0;
}

.cloud-chip {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: default;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.cloud-chip:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tooltip {
  position: fixed;
  background-color: var(--text-color);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s;
  max-width: 320px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.tooltip.visible {
  opacity: 1;
  visibility: visible;
}

/* --- Skills Grid --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.skill-item {
  background: var(--muted-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}

.skill-item:hover {
  border-color: var(--accent-color);
  transform: translateX(4px);
}

.skill-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.skill-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.skill-importance {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-color);
  font-weight: 600;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

/* --- Career Progression Timeline --- */
.progression-timeline {
  margin: 1rem 0;
}

.progression-level {
  background: var(--muted-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid var(--accent-color);
}

.level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.level-header h4 {
  margin: 0;
  font-size: 1rem;
}

.level-years {
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 600;
}

.level-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.role-tag {
  background: var(--accent-light);
  color: var(--accent-color);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
}

.level-salary {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.level-salary strong {
  color: var(--accent-color);
}

.level-resp {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

/* --- Real Talk Cards --- */
.real-talk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.real-talk-card {
  background: var(--muted-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
}

.real-talk-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.real-talk-card p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.real-talk-card .compare-note {
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
}

/* --- FAQ Accordion --- */
.faq-category {
  margin-bottom: 1.5rem;
}

.faq-category > h3 {
  color: var(--accent-color);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.faq-accordion {
  display: grid;
  gap: 0.5rem;
}

.faq-question {
  width: 100%;
  background-color: var(--muted-bg);
  border: 1px solid var(--border-color);
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 0.95rem;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-color);
  transition: transform 0.4s ease;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  background-color: #fff;
  font-size: 0.9rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0 1.1rem;
}

.faq-answer.open {
  max-height: 500px;
  padding: 1rem 1.1rem;
  opacity: 1;
}

.faq-answer p {
  margin: 0;
}

/* --- Takeaway --- */
.takeaway {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 2rem;
  background: var(--text-color);
  color: var(--bg-color);
  border-radius: 12px;
  margin-top: 2rem;
  line-height: 1.5;
}

/* --- Who It's For --- */
.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.who-for, .who-not {
  padding: 1.25rem;
  border-radius: 10px;
}

.who-for {
  background: var(--success-bg);
  border-left: 4px solid var(--success-color);
}

.who-not {
  background: var(--error-bg);
  border-left: 4px solid var(--error-color);
}

.who-for h4, .who-not h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
}

.who-for ul, .who-not ul {
  padding-left: 1.25rem;
  margin: 0;
}

.who-for li, .who-not li {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

/* --- Next Steps --- */
.next-steps {
  margin-top: 1.5rem;
}

.next-steps h3 {
  margin-bottom: 1rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--muted-bg);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
}

.step-item strong {
  color: var(--accent-color);
  min-width: 200px;
}

.step-item span {
  font-size: 0.9rem;
  color: #495057;
}

/* --- Related Careers --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--muted-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.related-card:hover {
  border-color: var(--accent-color);
  background: var(--accent-light);
}

.related-name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
}

.related-reason {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* --- Planned / Coming Soon Modal --- */
.planned-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 80;
}

.planned-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(420px, calc(100% - 2rem));
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

.planned-modal h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.planned-modal p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: #495057;
}

.planned-close {
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.planned-close:hover {
  background: var(--accent-hover);
}

.planned-open .planned-overlay {
  opacity: 1;
  visibility: visible;
}

.planned-open .planned-modal {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* --- Responsive --- */
@media (min-width: 600px) {
  h1 { font-size: 2.8rem; }
  .role-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-card { grid-template-columns: 1fr 1fr; }
  .real-talk-grid { grid-template-columns: 1fr 1fr; }
  .who-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .role-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  h2 { font-size: 1.25rem; }
  .container { padding: 0 0.75rem; }
  .intro { font-size: 0.95rem; }
  .site-header {
    padding: 0.5rem 0.75rem;
  }
  .logo {
    font-size: 0.9rem;
  }
  .logo::before {
    font-size: 1rem;
  }
  .site-header nav a {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
  .takeaway {
    font-size: 1rem;
    padding: 1.25rem;
  }
  .step-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  .step-item strong { min-width: auto; }
  .hero-banner { padding: 0.5rem 0.75rem; }
  .hero-inner {
    gap: 0.5rem;
  }
  .hero-text h1 { font-size: 1rem; }
  .hero-tagline { font-size: 0.65rem; }
  .hero-emoji { font-size: 1.5rem; }
  .hero-stats {
    gap: 0.35rem;
  }
  .stat {
    padding: 0.2rem 0.4rem;
    min-width: 50px;
  }
  .stat-number { font-size: 0.7rem; }
  .stat-label { font-size: 0.45rem; }
  .quick-nav { padding: 0.3rem 0.75rem; }
  .quick-nav-inner { gap: 0.15rem; }
  .quick-nav a { font-size: 0.65rem; padding: 0.2rem 0.4rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
  .related-grid { grid-template-columns: 1fr; }
}
