/* Imerzivní technologie ve vzdělávání (/publikace/imerzivni-technologie-ve-vzdelavani) – jen prvky specifické pro tuto publikaci.
   Základ je ve sdíleném publication-guide.css (proměnné --pg-* z .pg), cover v publication-cover.css.
   Načítá <PageStyles name="imerzivni-vzdelavani" /> v src/components/pages/(publications)/vr-education/page.tsx.
   Čisté CSS (mimo Tailwind), třídy s prefixem vre-. */

.vre-calc,
.vre-audience { clear: both; }

/* Pro koho je publikace: karty-odkazy s ikonou */
.vre-audience {
  display: grid;
  gap: 12px;
  margin: 22px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
@media (min-width: 640px) { .vre-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .vre-audience { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vre-audience li { margin: 0 !important; padding: 0 !important; }
.vre-audience a {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  background: #fff;
  color: var(--pg-ink) !important;
  text-decoration: none !important;
  box-shadow: var(--pg-shadow);
  transition: border-color 0.15s, transform 0.15s;
}
.vre-audience a:hover { border-color: var(--pg-brand); transform: translateY(-2px); }
.vre-audience .pg-icon { margin-bottom: 6px; }
.vre-audience strong { font-size: 15.5px; }
.vre-audience span:not(.pg-icon) { font-size: 13.5px; line-height: 1.55; color: var(--pg-muted); }
.vre-audience em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--pg-brand-2); }
@media (prefers-reduced-motion: reduce) { .vre-audience a { transition: none; } }

/* Úvod kapitoly Imerze: text vlevo, vysvětlivka „Co znamená imerzivní?“ vpravo jako doplnění (od 1100 px; níž pod textem) */
.vre-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; clear: both; }
.vre-intro > div > :first-child { margin-top: 0 !important; }
@media (min-width: 1100px) {
  .vre-intro { grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; align-items: start; }
  .vre-intro > div { max-width: 780px; }
  .vre-note { margin-top: 6px; }
}
.vre-note {
  position: relative;
  padding: 20px 22px;
  border: 1px solid #cfe7d8;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 220, 132, 0.16), transparent 55%),
    var(--pg-mint);
}
.pg-prose .vre-note h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pg-ink);
}
/* žárovka (stejná ikona jako u rámečků „Pro představu“) */
.vre-note h3::before {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007a3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E") center / 17px no-repeat,
    #fff;
  box-shadow: inset 0 0 0 1px #cfe7d8;
}
.pg-prose .vre-note p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--pg-text); }

/* Model CAMIL jako HTML schéma: imerze → přítomnost a účast → 6 faktorů (s texty) → učení.
   Od 1100 px vodorovně se šipkami →, níž pod sebou se šipkami ↓. */
.vre-camil {
  clear: both;
  margin: 24px 0 0 !important;
  padding: 22px;
  border-radius: 18px;
  background: var(--pg-soft);
}
.vre-camil-flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.vre-camil-step { position: relative; min-width: 0; }
.vre-camil-step + .vre-camil-step::before {
  content: "↓";
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--pg-brand);
}
.vre-camil-step--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 1100px) {
  .vre-camil-flow { grid-template-columns: 120px 150px minmax(0, 1fr) 120px; gap: 34px; align-items: center; }
  .vre-camil-step + .vre-camil-step::before { content: "→"; left: -27px; top: 50%; transform: translateY(-50%); }
  .vre-camil-step--pair { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

.vre-camil-node {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
}
.pg-prose .vre-camil-node strong { font-size: 15px; font-weight: 800; color: #fff; }
.vre-camil-node span { font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, 0.82); }
.vre-camil-node--dark { background: var(--pg-dark); }
.vre-camil-node--mid { background: #0b5a32; }
.vre-camil-node--brand { background: var(--pg-brand); }
.vre-camil-node--brand span { color: #fff; }

.pg-prose .vre-camil-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pg-brand-2);
}
.pg-prose .vre-camil-factors {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .pg-prose .vre-camil-factors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-prose .vre-camil-factors li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--pg-line);
  border-radius: 12px;
  background: #fff;
}
.vre-camil-factors .pg-icon { width: 34px; height: 34px; }
.vre-camil-factors .pg-icon svg { width: 19px; height: 19px; }
.pg-prose .vre-camil-factors strong { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--pg-ink); }
.pg-prose .vre-camil-factors p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--pg-muted); }
.pg-prose .vre-camil-factors li.is-warn { border-color: #f2c98a; background: var(--pg-warn-bg); }
.pg-prose .vre-camil-factors li.is-warn strong { color: var(--pg-warn); }
.vre-camil-factors li.is-warn .pg-icon { color: var(--pg-warn); background: #fdecc8; box-shadow: none; }
.vre-camil figcaption {
  margin: 16px auto 0;
  max-width: 70ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--pg-muted);
  text-align: center;
}

/* Kapitola Formáty: karty VR / AR / MR / XR (2 × 2) vlevo, video vpravo */
@media (min-width: 1100px) {
  .vre-xr { align-items: center; }
  .vre-xr > .pg-cards { margin-top: 0 !important; }
}

/* VR ve školství: předměty jako 3 karty vedle sebe (video nahoře); pod 900 px vodorovný karusel */
.pg-prose .vre-subjects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  clear: both;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.pg-prose .vre-subjects > li {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--pg-shadow);
}
.vre-subjects .pg-video { max-width: none; margin: 0; border-radius: 0; box-shadow: none; }
.vre-subjects > li > div { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.pg-prose .vre-subjects h5 { margin: 0; font-size: 16px; }
.pg-prose .vre-subjects p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; }
.pg-prose .vre-subjects .pg-chips { margin-top: auto !important; padding-top: 12px !important; }
.vre-subjects .pg-chips a { padding: 5px 11px; font-size: 13px; }
@media (max-width: 899.98px) {
  .pg-prose .vre-subjects {
    display: flex;
    gap: 12px;
    margin: 22px -20px 0;
    padding: 4px 20px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pg-prose .vre-subjects::-webkit-scrollbar { display: none; }
  .pg-prose .vre-subjects > li { flex: 0 0 min(82%, 340px); scroll-snap-align: start; }
}

/* Ilustrace bez šedého podkladu (diagram MR v kapitole Mixovaná realita) */
.pg-figure.vre-figure-plain { padding: 0; background: transparent; }

/* Kdy se VR vyplatí: podmínky vlevo, rozhodovací matice vpravo (přilepená při čtení); od 1100 px vedle sebe */
.vre-payoff { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; clear: both; margin-top: 18px !important; }
.vre-payoff > * { min-width: 0; }
@media (min-width: 1100px) {
  .vre-payoff { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
  .vre-payoff-figure { position: sticky; top: 24px; }
}
.pg-prose .vre-payoff-label { margin: 0; font-weight: 600; color: var(--pg-ink); }
.pg-prose .vre-payoff .pg-checks + .vre-payoff-label { margin-top: 24px; }
.pg-prose .vre-payoff .pg-checks { margin-top: 10px !important; }
.pg-prose .pg-figure.vre-payoff-figure { max-width: none; margin: 0 !important; }

/* Seznam „nevyplatí se“: stejné jako fajfky, ale s křížkem v teplé barvě */
.pg-checks.vre-cross li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--pg-warn-bg);
}

/* Postup zavedení: 3 navazující fáze (vzhled jako postup na homepage – panel se šipkami mezi sloupci).
   Od 1100 px vedle sebe v jednom panelu, níž samostatné karty pod sebou se šipkou ↓. */
.pg-prose .vre-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  clear: both;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.pg-prose .vre-flow-phase {
  position: relative;
  margin: 0;
  padding: 24px 24px 22px;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--pg-shadow);
}
.vre-flow-phase + .vre-flow-phase::before {
  content: "↓";
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--pg-brand);
}
@media (min-width: 1100px) {
  .pg-prose .vre-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--pg-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--pg-shadow);
  }
  .pg-prose .vre-flow-phase { padding: 26px 34px 26px 28px; border: 0; border-radius: 0; box-shadow: none; }
  .pg-prose .vre-flow-phase + .vre-flow-phase { padding-left: 40px; }
  /* oddělovač jako na homepage: šedá lomená linka se zelenou šipkou uprostřed */
  .vre-flow-phase + .vre-flow-phase::before {
    content: "";
    left: -15px;
    top: 0;
    bottom: 0;
    width: 30px;
    height: auto;
    transform: none;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cpath d='M18 14l4 6-4 6' fill='none' stroke='%2300a94f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px 40px no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 280' preserveAspectRatio='none'%3E%3Cpath d='M8 0 22 140 8 280' fill='none' stroke='%23dfe6e2' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  }
}
.vre-flow-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pg-brand);
}
.pg-prose .vre-flow-title { display: block; margin-top: 2px; font-size: 19px; font-weight: 700; color: var(--pg-ink); }
.pg-prose .vre-flow-steps { margin: 16px 0 0; padding: 0; list-style: none; }
.pg-prose .vre-flow-steps > li {
  position: relative;
  margin: 0;
  padding: 0 0 16px 44px;
}
.pg-prose .vre-flow-steps > li:last-child { padding-bottom: 0; }
/* číslo kroku v kolečku; svislá linka spojuje kroky uvnitř fáze */
.vre-flow-steps > li::before {
  content: attr(data-n);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--pg-brand);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(0, 169, 79, 0.18);
}
.vre-flow-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(rgba(0, 169, 79, 0.45), rgba(0, 169, 79, 0.15));
}
.pg-prose .vre-flow-steps strong { display: block; padding-top: 4px; font-size: 15px; color: var(--pg-ink); }
.pg-prose .vre-flow-steps p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--pg-muted); }

/* Štítek bez odkazu (EN verze nemá odkazy na CS kurzy) – vypadá jako běžný štítek, ne jako „…“ */
.pg-chips span.vre-chip { color: var(--pg-ink) !important; border-style: solid; }

/* Hodnocení v tabulce formátů (●●○) */
.vre-dots { white-space: nowrap; letter-spacing: 2px; color: var(--pg-brand); }
.vre-dots b { font-weight: 400; color: #cfdcd4; }

/* Kalkulačka bodu zvratu (CostCalculator.tsx) */
.vre-calc {
  margin: 24px 0 0 !important;
  padding: 24px;
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  background: #fff;
  box-shadow: var(--pg-shadow);
}
.vre-calc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.vre-calc-head strong { font-size: 17px; color: var(--pg-ink); }
.vre-calc-head span { font-size: 13px; color: var(--pg-muted); }
.vre-calc-grid { display: grid; gap: 24px; margin-top: 18px; }
.vre-calc-grid > * { min-width: 0; }
@media (min-width: 900px) { .vre-calc-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.vre-calc-fields { display: grid; gap: 14px; }
@media (min-width: 560px) { .vre-calc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vre-calc-field label { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--pg-ink); }
.vre-calc-field small { display: block; min-height: 2.6em; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--pg-muted); }
.vre-calc-input {
  display: flex;
  align-items: center;
  margin-top: 6px;
  border: 1px solid #cfdcd4;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.vre-calc-input:focus-within { border-color: var(--pg-brand); box-shadow: 0 0 0 3px rgba(0, 169, 79, 0.15); }
.vre-calc-input input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--pg-ink);
  background: transparent;
}
.vre-calc-input span { padding: 0 12px; font-size: 13px; color: var(--pg-muted); background: var(--pg-soft); align-self: stretch; display: flex; align-items: center; }

.vre-calc-result { padding: 22px; border-radius: 14px; background: var(--pg-soft); }
.vre-calc-result p { margin: 0; }
.vre-calc-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pg-muted); }
.vre-calc-bars { display: grid; gap: 14px; margin-top: 14px; }
.vre-calc-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.vre-calc-bar span { font-size: 13.5px; font-weight: 600; color: var(--pg-ink); }
.vre-calc-bar div { grid-column: 1 / -1; height: 12px; border-radius: 999px; background: #e3e8e5; overflow: hidden; }
.vre-calc-bar i { display: block; height: 100%; border-radius: inherit; background: #9aa5a0; transition: width 0.2s; }
.vre-calc-bar--vr i { background: var(--pg-brand); }
.vre-calc-bar output { grid-row: 1; grid-column: 2; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--pg-ink); }
.vre-calc-result p.vre-calc-verdict { margin-top: 18px; font-size: 17px; color: var(--pg-ink); }
.vre-calc[data-level="low"] .vre-calc-verdict strong { color: var(--pg-brand-2); }
.vre-calc[data-level="high"] .vre-calc-verdict strong { color: #b42323; }
.vre-calc-result p.vre-calc-note { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--pg-muted); }
.vre-calc-note strong { color: var(--pg-ink); }
@media (prefers-reduced-motion: reduce) { .vre-calc-bar i { transition: none; } }
