/* =====================================================================
   ScholarHat - Bootcamp list (/bootcamp)
   Page root is "<main class='bcl sbx'>": tokens, buttons, hero, tiles and
   sections come from sandbox-ui.css. This file only adds what is bootcamp-specific.
   Radius rule: pills 999px, buttons and inputs 12px, cards 18px.
   ===================================================================== */

/* ---------- sticky filter bar ---------- */
.bcl-bar {
    position: sticky; top: 0; z-index: 20; padding: 12px 0;
    background: color-mix(in srgb, var(--sbx-bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sbx-line);
}
.bcl-bar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.bcl-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; max-width: 100%; }
.bcl-pills::-webkit-scrollbar { display: none; }
.bcl-pill {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
    border: 1px solid var(--sbx-line); border-radius: 999px; background: var(--sbx-card); color: var(--sbx-body);
    font-family: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
    transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.bcl-pill small { font-size: .75rem; font-weight: 700; color: var(--sbx-muted); }
.bcl-pill:hover { border-color: var(--sbx-brand-line); transform: translateY(-1px); }
.bcl-pill.active { background: var(--sbx-brand); border-color: transparent; color: #04222a; }
.bcl-pill.active small { color: #04222a; opacity: .75; }
.bcl-pill:focus-visible { outline: 3px solid var(--sbx-brand); outline-offset: 2px; }

/* ---------- course grid ---------- */
.bcl-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .bcl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bcl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .bcl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bcl-grid > .column { display: none; }
.bcl-grid > .column.showc { display: flex; }

.bcl-card {
    position: relative; display: flex; flex-direction: column; width: 100%;
    border: 1px solid var(--sbx-line); border-radius: 18px; background: var(--sbx-card);
    box-shadow: var(--sbx-shadow); overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
    animation: sbx-rise .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.bcl-card::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--sbx-brand) 18%, transparent), transparent 70%);
}
.bcl-card:hover, .bcl-card:focus-within { transform: translateY(-6px); box-shadow: var(--sbx-shadow-hover); border-color: var(--sbx-brand-line); }
.bcl-card:hover::before { opacity: 1; }
.bcl-cover { height: 150px; background: var(--sbx-surface); overflow: hidden; }
.bcl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.bcl-card:hover .bcl-cover img { transform: scale(1.05); }
.bcl-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 16px 18px 18px; }
.bcl-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bcl-cat { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sbx-brand-ink); }
.bcl-rate { display: inline-flex; align-items: center; gap: 5px; font-size: .8125rem; font-weight: 700; color: var(--sbx-ink); }
.bcl-rate .ico { width: 14px; height: 14px; color: #f59e0b; }
.bcl-name {
    margin: 0; font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--sbx-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.bcl-name a { color: inherit; text-decoration: none; }
.bcl-name a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.bcl-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: auto; }
.bcl-stats li { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--sbx-body); }
.bcl-stats .ico { width: 15px; height: 15px; color: var(--sbx-brand-ink); }
.bcl-stats b { color: var(--sbx-ink); }
.bcl-go { margin-top: 4px; }
.bcl-go .sbx-btn { width: 100%; min-height: 44px; }

/* ---------- projects: compact scroller ---------- */
.bcl-ptools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.bcl-arrows { display: flex; gap: 8px; }
.bcl-arrow {
    display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--sbx-line); border-radius: 999px;
    background: var(--sbx-card); color: var(--sbx-ink); cursor: pointer; transition: border-color .2s, background .2s;
}
.bcl-arrow:hover { border-color: var(--sbx-brand-line); background: var(--sbx-brand-soft); }
.bcl-arrow:disabled { opacity: .4; cursor: default; }
.bcl-arrow--prev .ico { transform: scaleX(-1); }
.bcl-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 4px 2px 8px; margin: 0 -2px;
}
.bcl-track::-webkit-scrollbar { display: none; }
.bcl-proj {
    position: relative; flex: 0 0 min(272px, 78vw); scroll-snap-align: start; display: flex; flex-direction: column;
    border: 1px solid var(--sbx-line); border-radius: 18px; background: var(--sbx-card); overflow: hidden;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.bcl-proj:hover { transform: translateY(-4px); border-color: var(--sbx-brand-line); box-shadow: var(--sbx-shadow-hover); }
.bcl-proj__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.bcl-lvl { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bcl-lvl--beginner { color: var(--sbx-ok); background: var(--sbx-ok-soft); }
.bcl-lvl--intermediate { color: var(--sbx-brand-ink); background: var(--sbx-brand-soft); }
.bcl-lvl--advanced { color: var(--sbx-warn); background: var(--sbx-warn-soft); }
.bcl-proj h3 { margin: 0; font-size: 1rem; line-height: 1.3; font-weight: 700; color: var(--sbx-ink); letter-spacing: -.01em; }
.bcl-proj p { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--sbx-muted); }
.bcl-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.bcl-tech i { padding: 3px 9px; border: 1px solid var(--sbx-line); border-radius: 999px; font-style: normal; font-size: .6875rem; font-weight: 600; color: var(--sbx-body); background: var(--sbx-surface); }
.bcl-more { margin-top: 18px; text-align: center; }
.bcl-more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sbx-brand-ink); text-decoration: none; }
.bcl-more a:hover { text-decoration: underline; }

/* ---------- closing band ---------- */
.bcl-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding: 24px 28px; border: 1px solid var(--sbx-brand-line); border-radius: 18px; background: var(--sbx-brand-soft); }
.bcl-band h3 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--sbx-ink); }
.bcl-band p { margin: 0; color: var(--sbx-muted); }

@media (prefers-reduced-motion: reduce) {
    .bcl *, .bcl *::before, .bcl *::after { animation: none !important; transition: none !important; }
    .bcl-track { scroll-behavior: auto; }
}
.bcl [hidden] { display: none !important; }


/* ======================= v2: sandbox cards, labs, carousel, mobile ======================= */

/* category row: edge fade says "this scrolls" */
.bcl-pills {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    padding-inline: 14px; margin-inline: -14px;
}

/* sandbox cards: grid on desktop, snap row with a peek on mobile */
.bcl-sbxrow { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
@media (max-width: 1199.98px) { .bcl-sbxrow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899.98px) { .bcl-sbxrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) {
    .bcl-sbxrow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px; margin-inline: -16px; padding: 4px 16px 10px; }
    .bcl-sbxrow::-webkit-scrollbar { display: none; }
    .bcl-sbx { flex: 0 0 82%; scroll-snap-align: center; }
}
.bcl-sbx {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; text-decoration: none; color: inherit;
    border: 1px solid var(--sbx-line); border-radius: 18px; background: var(--sbx-card); box-shadow: var(--sbx-shadow); overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
    animation: sbx-rise .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.bcl-sbx::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--sbx-brand) 18%, transparent), transparent 70%);
}
.bcl-sbx:hover, .bcl-sbx:focus-visible { transform: translateY(-6px); box-shadow: var(--sbx-shadow-hover); border-color: var(--sbx-brand-line); }
.bcl-sbx:hover::before { opacity: 1; }
.bcl-sbx:focus-visible { outline: 3px solid var(--sbx-brand); outline-offset: 2px; }
.bcl-sbx > * { position: relative; }
.bcl-sbx__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bcl-sbx__logo { display: grid; place-items: center; width: 64px; height: 48px; padding: 8px; border: 1px solid var(--sbx-line); border-radius: 12px; background: #fff; }
.bcl-sbx__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bcl-sbx__tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .6875rem; font-weight: 700; color: var(--sbx-ok); background: var(--sbx-ok-soft); }
.bcl-sbx__tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: bcl-live 2s ease-out infinite; }
.bcl-sbx h3 { margin: 0; font-size: 1.0625rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--sbx-ink); }
.bcl-sbx__desc { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--sbx-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcl-sbx__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bcl-sbx__perks li { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--sbx-body); }
.bcl-sbx__perks .ico { width: 15px; height: 15px; color: var(--sbx-ok); }
.bcl-sbx__price { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--sbx-line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.bcl-sbx__price small { flex: 0 0 100%; font-size: .75rem; color: var(--sbx-muted); }
.bcl-sbx__price .bcl-sbx__per { flex: 0 0 100%; }
.bcl-sbx__now { font-size: 1.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--sbx-ink); font-variant-numeric: tabular-nums; }
.bcl-sbx__price del { font-size: .875rem; color: var(--sbx-muted); }
.bcl-sbx__price em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--sbx-ok); }
.bcl-sbx__cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; font-size: .9375rem; font-weight: 700; color: #04222a; background: linear-gradient(135deg, var(--sbx-brand), #4fe3f0); transition: box-shadow .2s, filter .2s; }
.bcl-sbx__cta .ico { transition: transform .25s; }
.bcl-sbx:hover .bcl-sbx__cta { box-shadow: 0 10px 22px -10px rgba(38,211,228,.8); filter: brightness(1.04); }
.bcl-sbx:hover .bcl-sbx__cta .ico { transform: translateX(4px); }

/* hands-on labs: picture + real-experience list */
.bcl-labs { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; margin-top: 44px; padding: 20px; border: 1px solid var(--sbx-line); border-radius: 22px; background: var(--sbx-surface); }
@media (min-width: 900px) { .bcl-labs { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; padding: 28px; } }
.bcl-labs__img { overflow: hidden; border: 1px solid var(--sbx-line); border-radius: 16px; background: var(--sbx-card); box-shadow: var(--sbx-shadow); }
.bcl-labs__img img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.bcl-labs:hover .bcl-labs__img img { transform: scale(1.025); }
.bcl-labs__txt h3 { margin: 12px 0 8px; font-size: clamp(1.375rem, 3vw, 1.875rem); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; color: var(--sbx-ink); }
.bcl-labs__txt > p { margin: 0 0 18px; color: var(--sbx-muted); line-height: 1.65; }
.bcl-labs__txt ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.bcl-labs__txt li { display: flex; align-items: center; gap: 12px; }
.bcl-labs__txt .ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: var(--sbx-brand-ink); background: var(--sbx-brand-soft); border: 1px solid var(--sbx-brand-line); }
.bcl-labs__txt b { display: block; font-size: .9375rem; color: var(--sbx-ink); }
.bcl-labs__txt small { display: block; font-size: .8125rem; color: var(--sbx-muted); }

/* projects: cards sized to the real image ratio (1962 x 802) */
.bcl-track { position: relative; scroll-padding-inline: 2px; }
.bcl-proj { flex: 0 0 min(380px, 84vw); }
.bcl-proj__img { aspect-ratio: 981 / 401; background: var(--sbx-surface); overflow: hidden; }
.bcl-proj__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.bcl-proj:hover .bcl-proj__img img { transform: scale(1.04); }
.bcl-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.bcl-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--sbx-line); cursor: pointer; transition: width .3s, background .3s; }
.bcl-dots button.on { width: 24px; background: var(--sbx-brand); }

/* mobile polish */
@media (max-width: 639.98px) {
    .bcl-bar { position: static; }
    .bcl-bar__in { gap: 10px; }
    .bcl-bar .sbx-search { width: 100%; }
    .bcl-arrows { display: none; }
    .bcl-ptools { margin-bottom: 12px; }
    .bcl-band { padding: 20px; }
    .bcl-band .sbx-btn { width: 100%; }
    .bcl-labs { padding: 14px; margin-top: 32px; }
}

@keyframes bcl-live { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }


/* ======================= v3: video-free hero, sleek proof strip, two-up mobile ======================= */

/* hero: copy + video side by side from 992px; below that the video is hidden (no extra scrolling on phones)
   and the copy is centred with the trust line standing in for the video note */
.bcl-trust { display: none; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .8125rem; color: var(--sbx-muted); }
.bcl-trust .ico { color: var(--sbx-ok); }
@media (max-width: 991.98px) {
    .bcl .sbx-video { display: none; }
    .bcl .sbx-hero__grid { justify-items: center; text-align: center; gap: 0; }
    .bcl .sbx-hero__copy { display: flex; flex-direction: column; align-items: center; }
    .bcl .sbx-lead { margin-inline: auto; }
    .bcl .sbx-ctas { justify-content: center; }
    .bcl-trust { display: inline-flex; }
}
/* video card: eases in, tilts a few degrees toward the pointer, glows on hover */
@media (min-width: 992px) {
    .bcl .sbx-video {
        position: relative;
        animation: sbx-rise .7s .15s cubic-bezier(.2,.7,.2,1) both;
        transform: perspective(1100px) rotateY(calc(var(--px, 0) * -5deg)) rotateX(calc(var(--py, 0) * 4deg));
        transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
        will-change: transform;
    }
    .bcl .sbx-video::before {
        content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
        box-shadow: 0 0 0 1px var(--sbx-brand-line), 0 34px 64px -30px rgba(38,211,228,.6);
    }
    .bcl .sbx-video:hover::before { opacity: 1; }
}

/* proof strip: one slim line, hairline dividers, a slow light sweep along the bottom edge */
.bcl .sbx-proof { position: relative; background: transparent; border-block: 0; }
.bcl .sbx-proof::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent 0, var(--sbx-brand) 50%, transparent 100%) no-repeat, var(--sbx-line);
    background-size: 28% 100%, 100% 100%; animation: bcl-sweep 7s ease-in-out infinite;
}
.bcl .sbx-proof ul { display: flex; flex-wrap: wrap; justify-content: center; }
.bcl .sbx-proof li {
    position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 22px; border: 0;
    animation: sbx-rise .55s cubic-bezier(.2,.7,.2,1) both;
}
.bcl .sbx-proof li:nth-child(2) { animation-delay: .06s; } .bcl .sbx-proof li:nth-child(3) { animation-delay: .12s; } .bcl .sbx-proof li:nth-child(4) { animation-delay: .18s; }
.bcl .sbx-proof li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 22px; margin-top: -11px; background: var(--sbx-line); }
.bcl .sbx-proof .ic { width: auto; height: auto; padding: 0; background: none; border-radius: 0; color: var(--sbx-brand-ink); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.bcl .sbx-proof .ico { width: 18px; height: 18px; }
.bcl .sbx-proof li:hover .ic { transform: translateY(-2px) scale(1.12); }
.bcl .sbx-proof b { display: inline; font-size: .875rem; font-weight: 700; }
.bcl .sbx-proof small { display: block; font-size: .75rem; line-height: 1.3; }
@media (max-width: 899.98px) {
    .bcl .sbx-proof ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bcl .sbx-proof li { padding: 11px 14px; gap: 8px; }
    .bcl .sbx-proof li:nth-child(odd)::before { display: none; }
    .bcl .sbx-proof li:nth-child(n+3) { border-top: 1px solid var(--sbx-line); }
    .bcl .sbx-proof li:nth-child(n+3)::before { display: none; }
    .bcl .sbx-proof li:nth-child(even)::before { display: block; }
    .bcl .sbx-proof b { font-size: .8125rem; }
    .bcl .sbx-proof small { display: none; }
}

/* mobile: two cards per row for bootcamps and sandboxes (compact variants) */
@media (max-width: 639.98px) {
    .bcl .sbx-hero { padding-block: 36px 28px; }
    .bcl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .bcl-cover { height: 88px; }
    .bcl-body { padding: 10px 12px 12px; gap: 8px; }
    .bcl-rate { display: none; }
    .bcl-name { font-size: .9375rem; min-height: 0; -webkit-line-clamp: 3; }
    .bcl-stats { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    .bcl-stats li { font-size: .75rem; gap: 6px; }
    .bcl-stats li:nth-child(n+4) { display: none; }
    .bcl-go .sbx-btn { min-height: 38px; padding: 0 10px; font-size: .8125rem; }

    .bcl-sbxrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; scroll-snap-type: none; margin: 8px 0 0; padding: 0; }
    .bcl-sbx { flex: initial; padding: 12px; gap: 8px; }
    .bcl-sbx__desc, .bcl-sbx__perks, .bcl-sbx__tag { display: none; }
    .bcl-sbx__logo { width: 52px; height: 40px; padding: 6px; }
    .bcl-sbx h3 { font-size: .9375rem; }
    .bcl-sbx__now { font-size: 1.25rem; }
    .bcl-sbx__price small { font-size: .6875rem; }
    .bcl-sbx__cta { min-height: 38px; font-size: .8125rem; gap: 6px; }
}

@keyframes bcl-sweep { 0% { background-position: -40% 0, 0 0; } 100% { background-position: 140% 0, 0 0; } }

/* few sandboxes: share the row instead of leaving empty columns; mobile hero buttons: equal width */
@media (min-width: 640px) { .bcl-sbxrow { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }
@media (max-width: 639.98px) {
    .bcl .sbx-ctas { width: 100%; flex-direction: column; }
    .bcl .sbx-ctas .sbx-btn { width: 100%; }
}


/* sandbox pages only: an odd last card takes the full row on phones instead of sitting alone */
@media (max-width: 639.98px) {
    #sandboxes .bcl-sbxrow > .bcl-sbx:last-child:nth-child(odd), .sbd-more .bcl-sbxrow > .bcl-sbx:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
