/* =====================================================================
   ScholarHat home - bootcamps (Views/Components/_JobOrientedDisplay.cshtml)
   1) a small wavy career path: role nodes on a dashed wave, a solid line and a dot climb it
   2) a bootcamp explorer: a premium track panel on the left, minimal cards on the right
   The section keeps .job-section (gradient background from css/job-oriented-display.css + home.css).
   Same accent as the hero: the ScholarHat logo's cyan to blue. Everything scoped under .jr.
   ===================================================================== */
.jr {
    --jr-ink: #0f1b2d;
    --jr-body: #46566b;
    --jr-muted: #6b7c91;
    --jr-line: rgba(20, 90, 140, .16);
    --jr-card: rgba(255, 255, 255, .72);
    --jr-a: #0891b2;
    --jr-b: #2563eb;
    --jr-a-ink: #0b6f8c;
    --jr-soft: rgba(8, 145, 178, .10);
    --jr-on-a: #ffffff;
    --jr-hi: rgba(255, 255, 255, .95);
    --jr-glow: 8, 145, 178;
    --jr-lift: 0 1px 0 var(--jr-hi) inset, 0 2px 4px rgba(15, 60, 100, .08), 0 22px 36px -26px rgba(15, 80, 130, .45);
    --jr-lift-hover: 0 1px 0 var(--jr-hi) inset, 0 4px 8px rgba(15, 60, 100, .08), 0 34px 48px -26px rgba(var(--jr-glow), .6);
    --jr-pill-bg: linear-gradient(150deg, rgba(8, 145, 178, .20), rgba(37, 99, 235, .14));
    --jr-glide: rgba(255, 255, 255, .85);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--jr-body);
    padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 60px);
}
[data-bs-theme="dark"] .jr {
    --jr-ink: #eef7ff;
    --jr-body: #b4c6d9;
    --jr-muted: #7f95ab;
    --jr-line: rgba(110, 190, 230, .16);
    --jr-card: rgba(7, 24, 44, .62);
    --jr-a: #2fb8d6;
    --jr-b: #3b82f6;
    --jr-a-ink: #7fd6ec;
    --jr-soft: rgba(47, 184, 214, .12);
    --jr-on-a: #04233a;
    --jr-hi: rgba(255, 255, 255, .07);
    --jr-glow: 47, 184, 214;
    --jr-lift: 0 1px 0 var(--jr-hi) inset, 0 2px 4px rgba(0, 0, 0, .4), 0 22px 36px -26px rgba(0, 0, 0, .85);
    --jr-lift-hover: 0 1px 0 var(--jr-hi) inset, 0 4px 8px rgba(0, 0, 0, .4), 0 34px 48px -26px rgba(var(--jr-glow), .45);
    --jr-pill-bg: linear-gradient(150deg, rgba(47, 184, 214, .16), rgba(59, 130, 246, .12));
    --jr-glide: rgba(255, 255, 255, .14);
}
.jr *, .jr *::before, .jr *::after { box-sizing: border-box; }
.jr-shell { position: relative; width: min(1240px, 100% - 32px); margin-inline: auto; }
.jr i.bi { line-height: 1; }
.jr button:focus-visible, .jr a:focus-visible { outline: 2px solid var(--jr-a); outline-offset: 3px; }

/* ---------- heading ---------- */
.jr-head { text-align: center; margin-bottom: clamp(24px, 3.5vw, 36px); }
.jr-head h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; color: var(--jr-ink); text-wrap: balance; }
.jr-head h2 em { font-style: normal; background: linear-gradient(100deg, var(--jr-a), var(--jr-b) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.jr-head p { margin: 0 auto; max-width: 40em; font-size: 1.0625rem; line-height: 1.55; color: var(--jr-body); text-wrap: balance; }

/* ---------- career path: dashed wave, nodes on it, small role cards under each ---------- */
.jr-path { position: relative; margin-bottom: clamp(36px, 5vw, 56px); }
.jr-wave { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.jr-wave path { fill: none; stroke-linecap: round; }
.jr-wave .base { stroke: var(--jr-muted); stroke-opacity: .45; stroke-width: 2; stroke-dasharray: 3 9; }
.jr-wave .prog { stroke: var(--jr-a); stroke-width: 2.5; }
.jr-wave .dot { fill: var(--jr-a); filter: drop-shadow(0 0 6px rgba(var(--jr-glow), .8)); }
.jr-nodes { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: start; }
.jr-nodes li { display: grid; justify-items: center; gap: 12px; }
.jr-nodes li:nth-child(even) { margin-top: 38px; }
/* entrance runs on the children, never on the li: a transformed li would become the offset parent the path script measures from */
.jr-path:not(.in) .jr-nodes li > * { opacity: 0; transform: translateY(18px); }
.jr-path.in .jr-nodes li > * { animation: jr-rise .6s calc(var(--i) * 80ms) backwards cubic-bezier(.2, .7, .2, 1); }
@keyframes jr-rise { from { opacity: 0; transform: translateY(18px); } }

.jr-node { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--jr-line); background: var(--jr-card); color: var(--jr-muted); font-size: 1.05rem; box-shadow: var(--jr-lift); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .35s, color .35s, border-color .35s, transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.jr-nodes li.reached .jr-node { border-color: color-mix(in srgb, var(--jr-a) 55%, var(--jr-line)); color: var(--jr-a); }
.jr-nodes li:has(.jr-role.on) .jr-node { background: linear-gradient(135deg, var(--jr-a), var(--jr-b)); border-color: transparent; color: var(--jr-on-a); transform: scale(1.12); }
.jr-nodes li:has(.jr-role.on) .jr-node::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(var(--jr-glow), .5); animation: jr-ping 1.8s ease-out infinite; }
@keyframes jr-ping { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

.jr-role { width: 100%; display: grid; gap: 4px; padding: 12px 12px 13px; text-align: center; font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--jr-line); border-radius: 14px; background: var(--jr-card); box-shadow: var(--jr-lift); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s; }
.jr-role b { font-size: .8125rem; line-height: 1.3; font-weight: 700; color: var(--jr-ink); }
.jr-role small { font-size: .72rem; line-height: 1.4; color: var(--jr-muted); }
.jr-role.on { transform: translateY(-4px); border-color: color-mix(in srgb, var(--jr-a) 60%, var(--jr-line)); box-shadow: var(--jr-lift-hover); }
.jr-role:active { transform: scale(.985); }

/* ---------- explorer: tracks left, cards right ---------- */
.jr-explore { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (min-width: 992px) { .jr-explore { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; } }

.jr-cats { position: relative; display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--jr-line); border-radius: 24px; background: var(--jr-pill-bg), var(--jr-card); box-shadow: 0 1px 0 var(--jr-hi) inset, 0 24px 40px -30px rgba(var(--jr-glow), .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.jr-cats__label { margin: 2px 6px 12px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jr-muted); text-align: center; }
/* on desktop the panel is as tall as the cards beside it; the tracks share that height evenly */
.jr-tabs { position: relative; display: grid; gap: 4px; flex: 1; grid-auto-rows: minmax(48px, 1fr); }
.jr-glider { position: absolute; z-index: 0; left: 0; top: 0; width: var(--w, 0); height: var(--h, 0); transform: translate(var(--x, 0), var(--y, 0)); border-radius: 16px; background: var(--jr-glide); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 0 0 1px color-mix(in srgb, var(--jr-a) 40%, transparent) inset, 0 12px 22px -12px rgba(var(--jr-glow), .65); transition: transform .45s cubic-bezier(.3, .8, .3, 1), width .45s cubic-bezier(.3, .8, .3, 1), height .45s cubic-bezier(.3, .8, .3, 1); }
.jr-tab { position: relative; z-index: 1; align-self: center; max-height: 76px; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 16px; background: transparent; color: var(--jr-body); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: color .2s, transform .15s; }
.jr-tab small { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--jr-soft); font-size: .72rem; font-weight: 700; color: var(--jr-a-ink); transition: background .25s, color .25s; }
.jr-tab:hover { color: var(--jr-ink); }
.jr-tab:active { transform: scale(.98); }
.jr-tab.on { color: var(--jr-ink); }
.jr-tab.on small { background: linear-gradient(135deg, var(--jr-a), var(--jr-b)); color: var(--jr-on-a); }

.jr-panel.swap { animation: jr-swap .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes jr-swap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.jr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.jr-card {
    display: flex; flex-direction: column; padding: 10px; min-width: 0; text-decoration: none; color: inherit;
    border: 1px solid var(--jr-line); border-radius: 20px; background: var(--jr-card);
    box-shadow: var(--jr-lift); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
.jr-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--jr-a) 50%, var(--jr-line)); box-shadow: var(--jr-lift-hover); color: inherit; }
.jr-card:active { transform: translateY(-1px) scale(.995); }
/* the banner is a 200px square: shown small and sharp on a blurred, enlarged copy of itself */
.jr-poster { position: relative; display: grid; place-items: center; height: 150px; border-radius: 14px; overflow: hidden; background: var(--jr-soft); isolation: isolate; }
.jr-poster::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: var(--img) center / cover; filter: blur(22px) saturate(1.25); opacity: .85; transform: scale(1.2); }
.jr-poster img { width: 108px; height: 108px; object-fit: cover; border-radius: 22px; box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .22); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.jr-card:hover .jr-poster img { transform: scale(1.06) rotate(-1.5deg); }
.jr-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 6px 6px; flex: 1; }
.jr-body h3 { margin: 0; font-size: .9375rem; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; color: var(--jr-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.jr-stats { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: .78rem; color: var(--jr-muted); }
.jr-stats span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.jr-stats i { color: var(--jr-a); font-size: .85rem; }
.jr-stats b { color: var(--jr-ink); font-weight: 700; }
.jr-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; color: var(--jr-a-ink); }
.jr-go i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--jr-soft); transition: transform .3s cubic-bezier(.2, .7, .2, 1), background .2s; }
.jr-card:hover .jr-go i { transform: translateX(4px); background: linear-gradient(135deg, var(--jr-a), var(--jr-b)); color: var(--jr-on-a); }
.jr-empty { padding: 32px 0; color: var(--jr-muted); }
.jr-all { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 36px); }
.jr-all a { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border: 1px solid var(--jr-line); border-radius: 999px; background: var(--jr-card); color: var(--jr-ink); font-size: .9375rem; font-weight: 700; text-decoration: none; transition: transform .2s cubic-bezier(.2, .7, .2, 1), border-color .2s, background .2s; }
.jr-all a:hover { transform: translateY(-2px); border-color: var(--jr-a); background: var(--jr-soft); color: var(--jr-ink); }
.jr-all a:active { transform: scale(.98); }
.jr-all a i { transition: transform .25s; }
.jr-all a:hover i { transform: translate(2px, -2px); }

/* ---------- tablet / phone ---------- */
@media (max-width: 991.98px) {
    .jr-nodes { gap: 8px; }
    .jr-role { padding: 10px 8px 11px; }
    .jr-role small { display: none; }
    .jr-role b { font-size: .75rem; }
    .jr-cats { display: block; padding: 10px; border-radius: 20px; }
    .jr-cats__label { display: none; }
    .jr-tabs { display: flex; grid-auto-rows: auto; overflow-x: auto; scrollbar-width: none; justify-content: safe center; gap: 4px; }
    .jr-tabs::-webkit-scrollbar { display: none; }
    .jr-tab { flex: none; min-height: 44px; }
}
/* phones: the path turns into a vertical timeline (node left, role right) */
@media (max-width: 767.98px) {
    .jr-nodes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .jr-nodes li { grid-template-columns: 44px minmax(0, 1fr); justify-items: stretch; align-items: center; gap: 14px; }
    .jr-nodes li:nth-child(even) { margin-top: 0; }
    .jr-role { text-align: left; padding: 10px 12px; }
    .jr-role small { display: block; }
    .jr-role b { font-size: .8125rem; }
    .jr-role.on { transform: translateX(4px); }
}
@media (max-width: 575.98px) {
    .jr-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .jr-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px; border-radius: 18px; }
    .jr-poster { height: 92px; border-radius: 12px; }
    .jr-poster img { width: 72px; height: 72px; border-radius: 16px; }
    .jr-body { padding: 2px 4px 2px 0; gap: 8px; }
    .jr-body h3 { min-height: 0; font-size: .875rem; }
    .jr-stats { gap: 3px 10px; font-size: .72rem; }
    .jr-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .jr *, .jr *::before, .jr *::after { animation: none !important; transition: none !important; }
    .jr-card:hover, .jr-role.on { transform: none; }
}
