/* Training page: walkthrough player, mock scenes, and section layout. */

/* ---- Player shell ---- */
.tp { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.tp-chrome { display: flex; align-items: center; gap: .45rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
.tp-chrome span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.tp-chrome em { font-style: normal; font-size: .72rem; color: var(--muted); margin-left: .5rem; background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .6rem; }
.tp-viewport { position: relative; aspect-ratio: 1280 / 800; overflow: hidden; background: var(--bg); cursor: pointer; }
.tp-stage { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; transform-origin: 0 0; transition: transform .9s cubic-bezier(.4, 0, .2, 1); background: var(--bg); }
.tp-big { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #fff; font-size: 1.5rem; box-shadow: var(--glow); z-index: 5; }

/* Cursor + effects live inside the stage so they zoom with the camera. */
.tp-cursor { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 2px solid #111; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); z-index: 60; pointer-events: none; margin: -13px 0 0 -13px; transition: left 1.1s cubic-bezier(.5, 0, .2, 1), top 1.1s cubic-bezier(.5, 0, .2, 1), transform .15s ease; }
.tp-cursor.down { transform: scale(.72); }
.tp-ring { position: absolute; z-index: 55; pointer-events: none; border: 2px solid var(--brand-2); border-radius: 10px; box-shadow: 0 0 0 4px rgba(239, 68, 68, .25), 0 0 30px rgba(239, 68, 68, .55); opacity: 0; transition: all .5s ease; }
.tp-ring.on { opacity: 1; animation: tp-pulse 1.4s ease-in-out infinite; }
@keyframes tp-pulse { 50% { box-shadow: 0 0 0 9px rgba(239, 68, 68, .12), 0 0 46px rgba(239, 68, 68, .8); } }
.tp-ripple { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: rgba(239, 68, 68, .55); z-index: 58; pointer-events: none; margin: -7px 0 0 -7px; animation: tp-rip .6s ease-out forwards; }
@keyframes tp-rip { to { transform: scale(5); opacity: 0; } }

/* Controls */
.tp-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-top: 1px solid var(--line); }
.tp-bar button { border: 0; background: var(--tint); color: var(--text); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: .85rem; }
.tp-bar button:hover { background: var(--card-hover); }
.tp-track { flex: 1; display: flex; gap: 4px; }
.tp-tick { flex: 1 1 0; height: 6px; border-radius: 3px; background: var(--line-strong); cursor: pointer; border: 0; padding: 0; position: relative; overflow: hidden; }
.tp-tick-fill { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; }
.tp-tick.now { background: var(--btn-hover-line); box-shadow: 0 0 10px rgba(239, 68, 68, .7); }
.tp-count { font-size: .72rem; color: var(--muted); min-width: 3.2em; text-align: right; }

/* Subtitle-style tour captions on the video */
.tp-overlay {
  position: absolute; left: 50%; bottom: .9rem; transform: translateX(-50%);
  max-width: min(86%, 620px); z-index: 70; pointer-events: none;
  display: flex; align-items: baseline; gap: .6rem;
  background: var(--nav-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: .5rem .9rem; box-shadow: var(--shadow);
}
.tp-overlay-step {
  color: var(--brand-2); font-weight: 700; font-size: .68rem;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.tp-overlay-text { font-size: .92rem; line-height: 1.45; color: var(--text); }
.tp-overlay.in { animation: tp-cap-in .45s ease; }
@keyframes tp-cap-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---- Mock scenes ---- */
.scene-nav { display: flex; align-items: center; gap: 1.2rem; padding: .75rem 2rem; border-bottom: 1px solid var(--line); }
.scene-nav .brand { font-weight: 700; display: flex; gap: .5rem; align-items: center; }
.scene-nav .links { margin-left: auto; display: flex; gap: 1.1rem; align-items: center; }
.scene-nav .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.scene-main { padding: 1.6rem 3rem; }
.scene-main .composer-hero { max-width: 680px; margin: 0 auto; text-align: center; }
.scene-main .meta { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; margin-top: .6rem; }
.scene-main .projects-head { margin-top: 2.2rem; }
.scene-main .projects { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-top: 1rem; }
.tp-stage .proj, .pdf-stage .proj { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.tp-stage .thumb, .pdf-stage .thumb { position: relative; height: 150px; border-bottom: 1px solid var(--line); overflow: hidden; }
.tp-stage .proj .body, .pdf-stage .proj .body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
.tp-stage .proj .actions, .pdf-stage .proj .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.scene-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; z-index: 40; }
.scene-dialog { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.4rem; width: 30rem; box-shadow: var(--shadow); }

.ed-cols { display: grid; grid-template-columns: 380px 1fr; height: 743px; }
.ed-side { padding: 1rem 1.1rem; border-right: 1px solid var(--line); overflow: hidden; }
.ed-sec { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ed-versions { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .45rem; font-size: .85rem; }
.ed-versions li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.ed-preview { background: #fff; overflow: hidden; }

.mock-site { width: 100%; min-height: 100%; background: #F7F5F0; color: #1F2427; will-change: transform; }
.ms-nav { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 1.2rem; background: #0E3B2E; color: #fff; font-size: .8rem; }
.ms-nav b { white-space: nowrap; }
.ms-links { color: #CFE3DC; font-size: .72rem; }
.ms-cta { background: #FFD166; color: #40342A; border-radius: 6px; padding: .25rem .7rem; font-weight: 700; font-size: .72rem; white-space: nowrap; }
.ms-hero { position: relative; }
.ms-hero > svg { display: block; width: 100%; height: 280px; }
.ms-hero-copy { position: absolute; left: 1.2rem; bottom: 1.1rem; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.ms-hero-copy h4 { margin: 0 0 .2rem; font-size: 1.5rem; }
.ms-hero-copy p { margin: 0 0 .55rem; font-size: .85rem; }
.ms-btn { display: inline-block; background: #0E3B2E; color: #fff; border-radius: 8px; padding: .4rem .9rem; font-size: .78rem; font-weight: 600; }
.ms-sec { padding: 1.1rem 1.2rem; }
.ms-sec h5 { margin: 0 0 .7rem; font-size: 1.05rem; color: #0E3B2E; }
.ms-cards { display: flex; gap: .7rem; }
.ms-price { flex: 1; background: #fff; border: 1px solid #E4DFD3; border-radius: 10px; padding: .8rem; font-size: .72rem; color: #6B655A; }
.ms-price b { display: block; font-size: .8rem; color: #0E3B2E; }
.ms-price .ms-amt { display: block; font-size: 1.1rem; font-weight: 800; color: #1F2427; margin: .25rem 0 .3rem; }
.ms-price .ms-amt span { font-size: .68rem; font-weight: 600; color: #6B655A; }
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ms-grid svg { display: block; width: 100%; height: 120px; border-radius: 8px; }
.ms-quote { background: #0E3B2E; color: #EAF3EF; }
.ms-quote p { margin: 0 0 .4rem; font-size: .9rem; font-style: italic; }
.ms-quote b { font-size: .72rem; color: #A9C7BC; font-style: normal; }
.ms-form { display: grid; gap: .5rem; max-width: 420px; }
.ms-input { background: #fff; border: 1px solid #E4DFD3; border-radius: 7px; padding: .45rem .6rem; font-size: .72rem; color: #8A857B; }
.ms-input-tall { padding-bottom: 2.2rem; }
.ms-footer { padding: .9rem 1.2rem; background: #0A2C22; color: #B9CFC7; font-size: .7rem; }

/* Highlight used by the PDF build (screenshots have no animation). */
.pdf-hl { outline: 3px solid #EF4444; outline-offset: 3px; border-radius: 8px; box-shadow: 0 0 0 7px rgba(239, 68, 68, .25), 0 0 36px rgba(239, 68, 68, .6); }

/* ---- Training page sections ---- */
.tsec { margin-top: 2.2rem; scroll-margin-top: 6.5rem; padding: 1.5rem; }
.tsec .guide { margin-top: 1.2rem; }
.tsec .guide ol { margin: .4rem 0 0; padding-left: 1.3rem; }
.tsec .guide li { margin-bottom: .3rem; }
.tp-host { margin-top: .4rem; }
.toc { display: flex; gap: .5rem; flex-wrap: wrap; position: sticky; top: 3.6rem; z-index: 40; background: var(--nav-bg); backdrop-filter: blur(10px); padding: .6rem 0; margin-top: 1rem; }
.toc a { font-size: .8rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: .32rem .8rem; }
.toc a:hover { color: var(--text); border-color: var(--line-strong); }

@media (prefers-reduced-motion: reduce) {
  .tp-stage, .tp-cursor { transition: none; }
  .tp-tick-fill { transition: none !important; }
  .tp-ring.on { animation: none; }
  .tp-overlay.in { animation: none; }
}
