/* Course Preview — a Udemy/Coursera-style LMS mockup for the AutomateNetOps courseware.
   Standalone (no app dependency). Plays the real rendered lesson MP4s. */
:root {
  /* AutomateNetOps brand — navy anchor + pillar accents (Regnor blue · Tavrin green · Valdis cyan). */
  --navy: #2e2e8f;
  --accent: #1d8ff0;          /* primary action = Regnor/AutomateNetOps blue */
  --accent-2: #4a9fe8;
  --accent-ink: #18306b;
  --ink: #14162b;
  --muted: #5b6172;
  --line: #e6e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --player-bg: #0d0d0d;       /* matches the app's "Carbon Midnight" dark surface */
  --player-panel: #1a1a1a;
  --player-line: #2a2a2a;
  --player-ink: #eaeaea;
  --player-muted: #8a8a8a;
  --ok: #3da66b;              /* Tavrin green */
  --shadow: 0 2px 8px rgba(20,22,43,.07), 0 10px 28px rgba(20,22,43,.07);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* per-course accent (set inline from the course's track); falls back to brand blue */
  --c-accent: var(--accent);
  --c-tint: var(--bg-soft);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.loading { padding: 80px; text-align: center; color: var(--muted); }

/* ---- top brand bar ---- */
.topbar { height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 20px;
  border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.brand img.logo { width: 26px; height: 26px; display: block; }
.brand .acad { color: var(--accent); }
.brand .brand-tm { font-size: 0.55em; vertical-align: super; }
.brand .brand-by { font-size: 0.62em; font-weight: 500; color: #8a8d93; margin-left: 2px; }
/* Embedded mode: slim crumb bar under the site masthead (no brand, not sticky) */
.topbar.topbar-slim { position: static; gap: 10px; }
.brand small { font-weight: 600; color: var(--muted); }
.crumb { color: var(--muted); font-size: 14px; }
.crumb a:hover { color: var(--accent); }

/* Site-integrated masthead pieces (story site-academy-shell-nav-copy-cta) */
.brand-acad { font-weight: 800; color: var(--accent); letter-spacing: -.02em; padding-left: 2px; }
.site-links { margin-left: auto; display: flex; gap: 20px; font-size: 14px; font-weight: 600; color: var(--muted); }
.site-links a:hover { color: var(--ink); }
.beta-pill { background: #1d8ff0; color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px; box-shadow: 0 4px 14px rgba(14,165,233,.3); transition: all .2s ease; white-space: nowrap; }
.beta-pill:hover { background: #0284C7; transform: translateY(-1px); }
@media (max-width: 860px) { .site-links { display: none; } }

/* Hero CTAs */
.hero-ctas { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.hcta { background: #fff; color: var(--accent-ink); font-weight: 700; font-size: 14.5px;
  padding: 11px 20px; border-radius: 9px; }
.hcta.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); font-weight: 600; }
.hcta:hover { transform: translateY(-1px); }

/* Hands-on conversion links */
.handson { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--accent); text-align: center; }
.handson:hover { text-decoration: underline; }
.side-cta { display: block; margin: 14px; padding: 12px 14px; border-radius: 10px; text-align: center;
  background: #1d8ff0; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.4; }
.side-cta small { font-weight: 500; opacity: .9; }
.side-cta:hover { background: #0284C7; }
.mkt-blurb { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.mkt-link { display: inline-block; font-size: 14.5px; font-weight: 700; color: var(--accent); }
.mkt-link:hover { text-decoration: underline; }
/* Course intro trailer (poster → inline video) */
.intro-chip { position: absolute; left: 12px; bottom: 10px; padding: 5px 12px; border-radius: 999px;
  background: rgba(15,23,42,0.78); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .3px; }
div.poster { cursor: pointer; position: relative; }
video.poster { width: 100%; aspect-ratio: 16/9; display: block; background: #0b1020; object-fit: cover; }

/* Site footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 40px; }
.foot .wrap { padding: 28px 24px 34px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; font-size: 13.5px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }
.foot-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---- catalog ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 32px 24px 80px; }
/* Branded hero band */
.hero { background: linear-gradient(120deg, var(--navy), #1f6feb 120%); color: #fff; }
.hero .wrap { padding-top: 40px; padding-bottom: 36px; }
.hero h1 { font-size: 36px; letter-spacing: -.02em; margin: 0 0 8px; color: #fff; }
.hero p { color: #d8e2fb; font-size: 16.5px; margin: 0; max-width: 760px; line-height: 1.5; }
.hero .hmeta { margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; color: #b9c8f3; font-size: 13.5px; }

/* Track section */
.track-head { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; }
.track-head img { width: 26px; height: 26px; }
.track-head h2 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.track-head .tb { font-size: 13px; color: var(--muted); }
.track-head .rule { flex: 1; height: 2px; border-radius: 2px; background: var(--c-accent); opacity: .25; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg);
  transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; border-top: 3px solid var(--c-accent); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 16/9; background: var(--c-tint) center/cover no-repeat; border-bottom: 1px solid var(--line); position: relative; }
.card .thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.card .thumb .play span { width: 46px; height: 46px; border-radius: 50%; background: var(--c-accent);
  color: #fff; display: grid; place-items: center; font-size: 17px; box-shadow: 0 4px 14px rgba(20,22,43,.3); }
.card .tpill { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); border: 1px solid var(--line); padding: 3px 9px 3px 4px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--c-accent); }
.card .tpill img { width: 15px; height: 15px; border-radius: 3px; }
.card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 5px; font-size: 17px; letter-spacing: -.01em; }
.card .sub { color: var(--muted); font-size: 13.5px; line-height: 1.45; flex: 1; }
.card .meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.badge { font-size: 11px; font-weight: 700; text-transform: capitalize; color: var(--c-accent);
  background: var(--c-tint); padding: 2px 9px; border-radius: 999px; }
.featured { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.featured-tag { position: absolute; top: 10px; right: 10px; background: var(--c-accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; z-index: 2; }

/* ---- course landing ---- */
.course-hero { background: var(--c-tint); border-bottom: 1px solid var(--line); }
.course-hero .tpill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--c-accent); margin-bottom: 4px; }
.course-hero .tpill img { width: 18px; height: 18px; }
.course-hero .wrap { display: grid; grid-template-columns: 1fr 360px; gap: 36px; padding-top: 28px; padding-bottom: 28px; }
.course-hero h1 { font-size: 30px; letter-spacing: -.02em; margin: 6px 0 8px; }
.course-hero .lead { color: #44464a; font-size: 17px; margin: 0 0 14px; }
.course-hero .facts { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.buybox { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; align-self: start; }
.buybox .poster { aspect-ratio: 16/9; background: var(--bg-soft) center/cover no-repeat; position: relative; }
.buybox .poster .play { position: absolute; inset: 0; display: grid; place-items: center; }
.buybox .poster .play span { width: 56px; height: 56px; border-radius: 50%; background: var(--c-accent); color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 6px 18px rgba(20,22,43,.35); }
.buybox .pad { padding: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--c-accent); color: #fff; border: 0; border-radius: 8px; padding: 13px 16px; font-size: 15px; font-weight: 700; }
.btn:hover { filter: brightness(.93); }
.btn.ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--bg-soft); }
.section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.section h2 { font-size: 20px; margin: 0 0 14px; }
.learn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.learn li { list-style: none; display: flex; gap: 10px; color: #2c2d31; font-size: 14.5px; line-height: 1.5; }
.learn li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.ul-plain { margin: 0; padding-left: 18px; color: #2c2d31; }
.ul-plain li { margin: 5px 0; }

/* curriculum accordion */
.curric { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mod { border-bottom: 1px solid var(--line); }
.mod:last-child { border-bottom: 0; }
.mod-head { width: 100%; text-align: left; background: var(--bg-soft); border: 0; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.mod-head .chev { transition: transform .15s; color: var(--muted); }
.mod[open] .mod-head .chev { transform: rotate(90deg); }
.mod-head .mmeta { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.lessons { list-style: none; margin: 0; padding: 0; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.lrow .ico { color: var(--c-accent); font-size: 13px; }
.lrow .ttl { flex: 1; }
.lrow .dur { color: var(--muted); font-size: 12.5px; }
.lrow:hover { background: var(--c-tint); }
.lrow.clickable { cursor: pointer; }

/* ---- player ---- */
.player { height: 100vh; display: flex; flex-direction: column; background: var(--player-bg); color: var(--player-ink); }
.player .pbar { height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  background: #18191b; border-bottom: 1px solid var(--player-line); flex: 0 0 auto; }
.player .pbar a.back { color: var(--player-muted); font-size: 14px; display: inline-flex; gap: 7px; align-items: center; }
.player .pbar a.back:hover { color: #fff; }
.player .pbar .ptitle { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.player .progress { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--player-muted); }
.player .progress .track { width: 140px; height: 6px; border-radius: 999px; background: #3a3b3f; overflow: hidden; }
.player .progress .track i { display: block; height: 100%; background: var(--c-accent); width: 0%; transition: width .3s; }
.pmain { flex: 1; display: flex; min-height: 0; }
.pstage { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; }
.videowrap { background: #000; display: grid; place-items: center; }
.videowrap video { width: 100%; max-height: 70vh; background: #000; display: block; }
.lessonbar { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--player-line); }
.lessonbar h2 { font-size: 18px; margin: 0; letter-spacing: -.01em; }
.lessonbar .lmeta { color: var(--player-muted); font-size: 13px; }
.lessonbar .nav { margin-left: auto; display: flex; gap: 10px; }
.navbtn { background: #2a2b2e; color: #fff; border: 1px solid var(--player-line); border-radius: 7px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; }
.navbtn:hover { background: #34353a; }
.navbtn:disabled { opacity: .4; cursor: default; }
.navbtn.done { background: var(--ok); border-color: var(--ok); }
.tabs { display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--player-line); }
.tabs button { background: none; border: 0; color: var(--player-muted); padding: 14px 6px; margin-right: 18px;
  font-size: 14px; font-weight: 700; border-bottom: 2px solid transparent; }
.tabs button.active { color: #fff; border-bottom-color: #fff; }
.tabbody { padding: 22px; max-width: 820px; line-height: 1.6; }
.tabbody.prose h3 { font-size: 17px; margin: 22px 0 8px; color: #fff; }
.tabbody.prose p, .tabbody.prose li { color: #d4d4d8; font-size: 14.5px; }
.tabbody.prose blockquote { border-left: 3px solid var(--accent-2); margin: 14px 0; padding: 6px 0 6px 14px; color: #e4e4e7; }
.tabbody.prose code { background: #2a2b2e; padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.tabbody .obj { list-style: none; padding: 0; margin: 0; }
.tabbody .obj li { display: flex; gap: 10px; margin: 8px 0; color: #d4d4d8; }
.tabbody .obj li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.tline { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--player-line); cursor: pointer; }
.tline:hover { background: #232427; }
.tline .tt { color: var(--accent-2); font-variant-numeric: tabular-nums; font-size: 12.5px; min-width: 46px; padding-top: 2px; }
.tline .tc { color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.tline .tx { color: #a1a1aa; font-size: 13.5px; }

/* curriculum sidebar in player */
.psidebar { width: 360px; flex: 0 0 360px; background: #18191b; border-left: 1px solid var(--player-line); overflow-y: auto; }
.psidebar .shead { padding: 16px 18px; font-weight: 800; font-size: 15px; border-bottom: 1px solid var(--player-line); position: sticky; top: 0; background: #18191b; z-index: 2; }
.smod-title { padding: 13px 18px 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--player-muted); }
.slesson { display: flex; gap: 12px; padding: 11px 18px; border-bottom: 1px solid #242528; cursor: pointer; align-items: flex-start; }
.slesson:hover { background: #1a1a1a; }
.slesson.current { background: #15233f; box-shadow: inset 3px 0 0 var(--c-accent); }
.slesson .chk { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #54565b; flex: 0 0 auto; margin-top: 2px; display: grid; place-items: center; font-size: 11px; color: transparent; }
.slesson.complete .chk { background: var(--ok); border-color: var(--ok); color: #fff; }
.slesson .si { flex: 1; }
.slesson .st { font-size: 13.5px; color: #e4e4e7; line-height: 1.35; }
.slesson.current .st { color: #fff; font-weight: 600; }
.slesson .sd { font-size: 12px; color: var(--player-muted); margin-top: 3px; display: flex; gap: 7px; align-items: center; }

@media (max-width: 920px) {
  .course-hero .wrap { grid-template-columns: 1fr; }
  .learn { grid-template-columns: 1fr; }
  .pmain { flex-direction: column; }
  .psidebar { width: 100%; flex: 0 0 auto; max-height: 340px; }
}
