/* ============================================================
   FutureU — infographic.css
   Interactive slideshow infographic
   Used by: survey.html and career.html
   ============================================================ */

.infographic-section {
  border-top: 0.5px solid var(--border-subtle);
  padding: 48px 24px 60px;
}

.inf-top { text-align: center; margin-bottom: 24px; }

.inf-eyebrow {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 6px;
}

.inf-title {
  font-size: 22px; font-weight: 500; color: var(--text-primary);
  margin-bottom: 8px; letter-spacing: -0.3px;
}

.inf-sub {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
  max-width: 420px; margin: 0 auto;
}

/* ── Dots ───────────────────────────────────────────────────── */
.inf-dots {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 24px;
}

.inf-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-mid); cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  border: none; padding: 0;
}

.inf-dot.active { background: var(--brand); transform: scale(1.4); }
.career-inf .inf-dot.active { background: #185FA5; }

/* ── Slides ─────────────────────────────────────────────────── */
.inf-slide { display: none; max-width: 580px; margin: 0 auto; animation: infSlideIn 0.35s ease both; }
.inf-slide.active { display: block; }

@keyframes infSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stat grid ──────────────────────────────────────────────── */
.inf-stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 12px;
}

.inf-stat-card {
  background: var(--bg-secondary); border-radius: var(--radius-lg);
  padding: 16px 12px; text-align: center;
}

.inf-stat-num { font-size: 28px; font-weight: 500; margin-bottom: 4px; letter-spacing: -0.5px; }
.inf-green       { color: #1D9E75; }
.inf-red         { color: #E24B4A; }
.inf-amber       { color: #EF9F27; }
.inf-career-blue { color: #185FA5; }

.inf-stat-label { font-size: 11px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 4px; }
.inf-stat-source { font-size: 10px; color: var(--text-tertiary); line-height: 1.4; }

/* ── Card ───────────────────────────────────────────────────── */
.inf-card {
  background: var(--bg-primary); border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 12px;
}

.inf-card-title { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 16px; }

/* ── Bars ───────────────────────────────────────────────────── */
.inf-bar-row { margin-bottom: 12px; }
.inf-bar-row:last-child { margin-bottom: 0; }

.inf-bar-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-secondary); margin-bottom: 5px;
}

.inf-bar-labels span:last-child { font-weight: 500; color: var(--text-primary); }

.inf-bar-track { height: 8px; background: var(--bg-secondary); border-radius: 99px; overflow: hidden; }
.inf-bar-fill  { height: 8px; border-radius: 99px; width: 0%; transition: width 0.8s cubic-bezier(.4,0,.2,1); }

/* ── Two col ────────────────────────────────────────────────── */
.inf-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }

.inf-highlight { border-radius: var(--radius-lg); padding: 18px; }
.inf-highlight-green { background: #E1F5EE; }
.inf-highlight-red   { background: #FCEBEB; }
.inf-highlight-blue  { background: #E6F1FB; }

.inf-highlight-num { font-size: 26px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.5px; }
.inf-highlight-green .inf-highlight-num { color: #0F6E56; }
.inf-highlight-red   .inf-highlight-num { color: #A32D2D; }
.inf-highlight-blue  .inf-highlight-num { color: #0C447C; }

.inf-highlight-label { font-size: 12px; line-height: 1.55; }
.inf-highlight-green .inf-highlight-label { color: #0F6E56; }
.inf-highlight-red   .inf-highlight-label { color: #A32D2D; }
.inf-highlight-blue  .inf-highlight-label { color: #0C447C; }

/* ── Timeline ───────────────────────────────────────────────── */
.inf-timeline-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 0.5px solid var(--border-subtle); }
.inf-timeline-last { border-bottom: none; }

.inf-timeline-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; flex-shrink: 0; margin-top: 1px;
}

.inf-dot-red   { background: #FCEBEB; color: #A32D2D; }
.inf-dot-amber { background: #FAEEDA; color: #633806; }
.inf-dot-green { background: #E1F5EE; color: #0F6E56; }
.inf-dot-blue  { background: #E6F1FB; color: #0C447C; }

.inf-timeline-label { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 3px; }
.inf-timeline-desc  { font-size: 12px; color: var(--text-secondary); line-height: 1.55; }

/* ── Nav ────────────────────────────────────────────────────── */
.inf-nav-row {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 580px; margin: 16px auto 0;
}

.inf-arrow-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--border-mid); background: rgba(255,255,255,0.12);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.inf-arrow-btn:hover { background: rgba(255,255,255,0.22); border-color: var(--border-strong); }
.inf-arrow-btn:disabled { opacity: 0.18; pointer-events: none; }
.inf-arrow-btn svg { width: 22px; height: 22px; }
.inf-arrow-btn svg path { stroke: #ffffff; }

.inf-slide-count { font-size: 12px; color: var(--text-tertiary); }

.inf-sources {
  font-size: 10px; color: var(--text-tertiary); text-align: center;
  margin-top: 16px; line-height: 1.6; max-width: 580px;
  margin-left: auto; margin-right: auto;
}

/* ── Hover animations ───────────────────────────────────────── */

/* Slide 0 — stat cards */
.inf-stat-card {
  transition: transform 0.22s cubic-bezier(.4,0,.2,1),
              box-shadow 0.22s cubic-bezier(.4,0,.2,1);
}
.inf-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.inf-stat-num {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
}
.inf-stat-card:hover .inf-stat-num { transform: scale(1.1); }

/* Slide 0 — highlight boxes */
.inf-highlight {
  transition: transform 0.22s cubic-bezier(.4,0,.2,1),
              box-shadow 0.22s cubic-bezier(.4,0,.2,1);
}
.inf-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}
.inf-highlight-num {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
}
.inf-highlight:hover .inf-highlight-num { transform: scale(1.12); }

/* Slides 1 & 2 — bar rows */
.inf-bar-row { border-radius: 8px; transition: background 0.18s ease; }
.inf-bar-row:hover { background: var(--bg-secondary); }
.inf-bar-fill { transition: width 0.8s cubic-bezier(.4,0,.2,1), filter 0.2s ease; }
.inf-bar-row:hover .inf-bar-fill { filter: brightness(1.2); }

/* Slide 3 — timeline rows */
.inf-timeline-row { border-radius: 8px; transition: background 0.18s ease; }
.inf-timeline-row:hover { background: var(--bg-secondary); }
.inf-timeline-dot { transition: transform 0.22s cubic-bezier(.4,0,.2,1); }
.inf-timeline-row:hover .inf-timeline-dot { transform: scale(1.22); }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .inf-stat-grid { grid-template-columns: 1fr; }
  .inf-two-col   { grid-template-columns: 1fr; }
  .inf-title     { font-size: 18px; }
  .infographic-section { padding: 36px 16px 48px; }
}