/* =====================================================================
   Real experience (Views/Shared/_RealExperience.cshtml): /bootcamp hero, /courses, bootcamp detail page
   A glass "app window" that plays a short storyboard over real screens of the learning app: a camera moves into the part
   that matters while a few lines are typed, then the next tab starts. Same language as the home hero (home-hero.css).
   .rx--hero = compact, stage only. Phones: the same camera zooms into the readable area and the narration sits under the window.
   Radii: 12 (controls) / 18 (window) / pill. All motion is off under prefers-reduced-motion.
   ===================================================================== */
.rx {
    --rx-ink: #0f1b2d;
    --rx-body: #46566b;
    --rx-muted: #6b7c91;
    --rx-line: rgba(20, 90, 140, .16);
    --rx-glass: rgba(255, 255, 255, .82);
    --rx-a: #0891b2;
    --rx-b: #2563eb;
    --rx-a-ink: #0b6f8c;
    --rx-soft: rgba(8, 145, 178, .10);
    --rx-glow: 8, 145, 178;
    --rx-screen: #07182b;
    --rx-say: rgba(255, 255, 255, .94);
    --rx-say-ink: #0f1b2d;
    --rx-shadow: 0 2px 4px rgba(15, 60, 100, .08), 0 40px 70px -34px rgba(15, 80, 130, .5);
    --rx-ar: 2 / 1;   /* the screenshots are about 2:1, so a screen is shown whole at natural size */
    position: relative;
    overflow: hidden;
    color: var(--rx-body);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    padding: clamp(40px, 1vw, 80px) 0;
}
[data-bs-theme="dark"] .rx {
    --rx-ink: #eef7ff;
    --rx-body: #b4c6d9;
    --rx-muted: #7f95ab;
    --rx-line: rgba(110, 190, 230, .18);
    --rx-glass: rgba(9, 28, 50, .78);
    --rx-a: #2fb8d6;
    --rx-b: #3b82f6;
    --rx-a-ink: #7fd6ec;
    --rx-soft: rgba(47, 184, 214, .14);
    --rx-glow: 47, 184, 214;
    --rx-screen: #04101f;
    --rx-say: rgba(6, 22, 40, .92);
    --rx-say-ink: #eef7ff;
    --rx-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 44px 80px -36px rgba(0, 0, 0, .9);
}
.rx *, .rx *::before, .rx *::after { box-sizing: border-box; }
.rx-shell { width: min(100% - 32px, 1160px); margin-inline: auto; }

/* ---------- heading ---------- */
.rx-head { max-width: 720px; margin: 0 auto 26px; text-align: center; }
.rx-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--rx-line); border-radius: 999px; background: var(--rx-soft); color: var(--rx-a-ink); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.rx-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--rx-a); }
.rx-head h2 { margin: 14px 0 10px; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; color: var(--rx-ink); text-wrap: balance; }
.rx-head h2 em { font-style: normal; background: linear-gradient(100deg, var(--rx-a), var(--rx-b) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rx-head p { margin: 0; font-size: clamp(.95rem, 1.3vw, 1.0625rem); line-height: 1.65; color: var(--rx-body); text-wrap: pretty; }

/* ---------- tabs with a sliding glider (same as the hero) ---------- */
.rx-tabs { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 20px; padding: 5px; gap: 2px; border: 1px solid var(--rx-line); border-radius: 999px; background: var(--rx-glass); backdrop-filter: blur(10px); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rx-tabs::-webkit-scrollbar { display: none; }
.rx-glider { position: absolute; top: 5px; bottom: 5px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: linear-gradient(135deg, var(--rx-a), var(--rx-b)); box-shadow: 0 8px 18px -8px rgba(var(--rx-glow), .8); transition: transform .45s cubic-bezier(.3, .8, .2, 1), width .45s cubic-bezier(.3, .8, .2, 1); }
.rx-tab { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--rx-body); font-family: inherit; font-size: .875rem; font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap; transition: color .25s; }
.rx-tab:hover { color: var(--rx-ink); }
.rx-tab.on, .rx-tab.on:hover { color: #fff; }
.rx-tab:focus-visible, .rx-arrow:focus-visible, .rx-dots button:focus-visible { outline: 2px solid var(--rx-a); outline-offset: 3px; }

/* ---------- stage + window ---------- */
.rx-stage { --rx: 0deg; --ry: 0deg; position: relative; perspective: 1500px; padding: 0 4px; }
.rx-orb { position: absolute; inset: -8% -2%; z-index: 0; pointer-events: none; }
.rx-orb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(var(--rx-glow), .24), rgba(59, 130, 246, .10) 55%, transparent 76%); filter: blur(10px); }
.rx-orb i { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(var(--rx-glow), .32), transparent 70%); animation: rx-float 9s ease-in-out infinite; }
.rx-orb i:first-child { left: 2%; top: 8%; } .rx-orb i:last-child { right: 3%; bottom: 6%; animation-delay: -4s; }
@keyframes rx-float { 50% { transform: translateY(-18px) scale(1.06); } }

.rx-win {
    position: relative; z-index: 1; overflow: hidden;
    border: 1px solid var(--rx-line); border-radius: 18px; background: var(--rx-glass); box-shadow: var(--rx-shadow); backdrop-filter: blur(12px);
    transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.rx-chrome { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--rx-line); }
.rx-lights { display: flex; gap: 6px; flex: none; }
.rx-lights i { width: 10px; height: 10px; border-radius: 50%; }
.rx-lights i:nth-child(1) { background: #ff6b6b; } .rx-lights i:nth-child(2) { background: #ffc857; } .rx-lights i:nth-child(3) { background: #4cd9a0; }
.rx-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--rx-soft); color: var(--rx-muted); font-size: .76rem; white-space: nowrap; overflow: hidden; }
.rx-url i { color: var(--rx-a); font-size: .7rem; }
.rx-url b { font-weight: 600; color: var(--rx-ink); overflow: hidden; text-overflow: ellipsis; }
.rx-live { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--rx-a-ink); }
.rx-live i { width: 7px; height: 7px; border-radius: 50%; background: #1f9d6e; box-shadow: 0 0 0 0 rgba(31, 157, 110, .5); animation: rx-ping 2s ease-out infinite; }
@keyframes rx-ping { 70%, 100% { box-shadow: 0 0 0 8px rgba(31, 157, 110, 0); } }

/* the screen: every image sits top-left at full width; JS moves and scales it (the camera) */
.rx-screen { position: relative; aspect-ratio: var(--rx-ar); background: var(--rx-screen); overflow: hidden; }
.rx-frame { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.rx-frame.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.rx-frame img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; transform-origin: 0 0; transition: transform 2.6s cubic-bezier(.3, .1, .2, 1); will-change: transform; user-select: none; -webkit-user-drag: none; }

/* ---------- the narration: over the screen on desktop, under the window on phones ---------- */
.rx-say { position: absolute; left: 16px; bottom: 16px; z-index: 3; width: min(460px, calc(100% - 32px)); padding: 12px 16px 13px; border: 1px solid var(--rx-line); border-radius: 14px; background: var(--rx-say); color: var(--rx-say-ink); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); backdrop-filter: blur(14px); }
.rx-say__tag { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; margin-bottom: 7px; border-radius: 999px; background: linear-gradient(135deg, var(--rx-a), var(--rx-b)); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rx-say__lines { min-height: 2.9em; }
.rx-say__lines p { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.45; color: inherit; }
.rx-say__lines p + p { margin-top: 3px; }
.rx-say__lines p::before { content: ""; flex: none; width: 15px; height: 15px; margin-top: 3px; border-radius: 50%; background: rgba(var(--rx-glow), .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230891b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.rx-say__lines p.typing span::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--rx-a); animation: rx-caret .8s steps(1) infinite; }
@keyframes rx-caret { 50% { opacity: 0; } }

/* ---------- controls ---------- */
.rx-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px auto 0; }
.rx-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rx-line); border-radius: 12px; background: var(--rx-glass); color: var(--rx-ink); cursor: pointer; transition: transform .2s, border-color .2s, color .2s; }
.rx-arrow:hover { transform: translateY(-2px); border-color: var(--rx-a); color: var(--rx-a-ink); }
.rx-arrow[hidden] { display: none; }
.rx-dots { display: flex; align-items: center; gap: 8px; min-width: 60px; justify-content: center; padding: 0 6px; }
.rx-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--rx-line); cursor: pointer; transition: width .3s cubic-bezier(.3, .8, .2, 1), background-color .3s; }
.rx-dots button.done { background: rgba(var(--rx-glow), .55); }
.rx-dots button.on { width: 26px; background: linear-gradient(90deg, var(--rx-a), var(--rx-b)); }

/* ---------- entrance (section mode only, once the section is on screen) ---------- */
.rx:not(.rx--hero) .rx-head, .rx:not(.rx--hero) .rx-tabs, .rx:not(.rx--hero) .rx-stage, .rx:not(.rx--hero) .rx-nav { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.rx.seen:not(.rx--hero) .rx-head, .rx.seen:not(.rx--hero) .rx-tabs, .rx.seen:not(.rx--hero) .rx-stage, .rx.seen:not(.rx--hero) .rx-nav { opacity: 1; transform: none; }
.rx.seen:not(.rx--hero) .rx-tabs { transition-delay: .08s; } .rx.seen:not(.rx--hero) .rx-stage { transition-delay: .16s; } .rx.seen:not(.rx--hero) .rx-nav { transition-delay: .24s; }

/* ---------- hero mode: stage only, tighter; the caption sits under the screen so nothing is covered ---------- */
.rx--hero { padding: 0; overflow: visible; }
.rx--hero .rx-shell { width: 100%; }
.rx--hero .rx-tabs { margin-bottom: 14px; }
.rx--hero .rx-tab { height: 36px; padding: 0 13px; font-size: .8125rem; }
.rx--hero .rx-nav { margin-top: 14px; justify-content: flex-start; }

/* stacked caption: in the hero (small window) and on phones */
.rx--hero .rx-say { position: static; width: auto; margin: 0; border: 0; border-top: 1px solid var(--rx-line); border-radius: 0; box-shadow: none; backdrop-filter: none; padding: 12px 16px 14px; min-height: 8.2rem; }
.rx--hero .rx-say__lines p { font-size: .9rem; }

@media (max-width: 767.98px) {
    .rx-live, .rx-lights { display: none; }
    .rx-chrome { padding: 8px 12px; }
    .rx-tabs { width: 100%; justify-content: flex-start; }
    .rx-tab { height: 38px; padding: 0 14px; }
    .rx-win { transform: none !important; }
    .rx-say { position: static; width: auto; margin: 0; border: 0; border-top: 1px solid var(--rx-line); border-radius: 0; box-shadow: none; backdrop-filter: none; padding: 12px 14px 14px; min-height: 8.2rem; }
    .rx-say__lines p, .rx--hero .rx-say__lines p { font-size: .95rem; }
    .rx-nav, .rx--hero .rx-nav { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    .rx *, .rx *::before, .rx *::after { animation: none !important; transition: none !important; }
    .rx:not(.rx--hero) .rx-head, .rx:not(.rx--hero) .rx-tabs, .rx:not(.rx--hero) .rx-stage, .rx:not(.rx--hero) .rx-nav { opacity: 1; transform: none; }
}

/* hero stage is narrow: six tabs (Videos to Doubt sessions) must fit without clipping */
.rx--hero .rx-tab { height: 36px; padding: 0 9px; gap: 5px; font-size: .78rem; }
.rx--hero .rx-tabs { padding: 4px; gap: 0; }
