/* Životný Kompas — Dotazník slideshow V03 */
:root {
  --bg: #f5f3ff;
  --bg-soft: #ebe8fb;
  --card: #ffffff;
  --ink: #2c2740;
  --muted: #6d6882;
  --line: #ddd8f0;
  --purple: #7c6ec3;
  --purple-d: #5c4da8;
  --purple-l: #a89ee0;
  --ok: #4f9a78;
  --shadow: 0 20px 60px rgba(92, 77, 168, 0.14);
  --radius: 24px;
  --font: "Manrope", system-ui, sans-serif;
  --script: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(168, 158, 224, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 100%, rgba(124, 110, 195, 0.18), transparent 50%),
    linear-gradient(165deg, #f7f5ff, var(--bg) 40%, #efeafc);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.show-app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1rem 1rem 1.25rem;
  width: min(920px, 100%);
  margin: 0 auto;
}

/* Top bar */
.show-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.show-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
  color: var(--purple-d);
  font-size: 0.95rem;
}

.show-brand svg { width: 34px; height: 34px; }

.show-step {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}

.progress {
  height: 5px;
  background: rgba(124, 110, 195, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--purple-l));
  border-radius: inherit;
  transition: width 0.45s ease;
}

/* Stage */
.show-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.25rem;
}

.slide {
  display: none;
  width: 100%;
  animation: rise 0.45s ease both;
}

.slide.active { display: block; }

.slide-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(124, 110, 195, 0.1);
  padding: clamp(1.35rem, 3vw, 2.1rem);
  position: relative;
  overflow: hidden;
}

.slide-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(168, 158, 224, 0.22), transparent 70%);
  pointer-events: none;
}

.slide-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.slide-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  background: linear-gradient(160deg, #efeaff, #e4defa);
  display: grid;
  place-items: center;
  padding: 0.75rem;
}

.slide-art svg { width: 100%; height: auto; }

.slide-content h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--purple-d);
  margin-bottom: 0.65rem;
}

.slide-lead {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.slide-lead strong { color: var(--ink); font-weight: 650; }

.bullets {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.bullet {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.95rem;
}

.bullet-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.bullet-dot svg { width: 12px; height: 12px; }

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #faf9ff;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.consent input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
  flex-shrink: 0;
}

.consent a {
  color: var(--purple-d);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent.error {
  border-color: #d97989;
  background: #fff5f7;
}

/* Options */
.options {
  display: grid;
  gap: 0.55rem;
}

.options.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.options.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 550;
  font-size: 0.92rem;
  transition: border-color .2s ease, background .2s ease, transform .15s ease, box-shadow .2s ease;
  position: relative;
}

.opt:hover {
  border-color: var(--purple-l);
  background: #faf8ff;
  transform: translateY(-1px);
}

.opt.selected {
  border-color: var(--purple);
  background: #f3f0ff;
  box-shadow: 0 0 0 2px rgba(124, 110, 195, 0.15);
}

.opt-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--purple-d);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}

.opt-check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.opt.selected .opt-check {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.opt.selected .opt-check svg { opacity: 1; }
.opt-check svg { width: 11px; height: 11px; opacity: 0; }

.hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: -0.35rem 0 0.9rem;
}

/* Nav */
.slide-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 22px rgba(124, 110, 195, 0.35);
}

.btn-primary:hover { background: var(--purple-d); }

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  color: var(--muted);
  font-weight: 600;
  padding-left: 0.4rem;
}

.btn-ghost:hover { color: var(--purple-d); }

/* Analysis */
.analyze {
  text-align: center;
  padding: 1rem 0.5rem 0.25rem;
}

.analyze-orb {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--purple-l), var(--purple-d));
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  animation: pulse 1.6s ease-in-out infinite;
}

.analyze-orb svg { width: 40px; height: 40px; }

.analyze h1 { margin-bottom: 0.5rem; }
.analyze .slide-lead { margin-bottom: 1.5rem; }

.check-list {
  display: grid;
  gap: 0.7rem;
  text-align: left;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #f7f5ff;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(8px);
}

.check-item.show {
  opacity: 1;
  transform: none;
  transition: opacity .4s ease, transform .4s ease, border-color .3s ease, background .3s ease;
}

.check-item.done {
  border-color: rgba(79, 154, 120, 0.35);
  background: #f1faf5;
}

.check-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ddd8f0;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.check-item.done .check-mark { background: var(--ok); }
.check-mark svg { width: 13px; height: 13px; }

/* Floating actions */
.fab-stack {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 40;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(70, 58, 150, 0.18);
  border: 1px solid rgba(124, 110, 195, 0.12);
  display: grid;
  place-items: center;
  color: var(--purple-d);
  transition: transform .15s ease, background .2s ease;
  position: relative;
}

.fab:hover {
  transform: translateY(-2px) scale(1.03);
  background: #f7f5ff;
}

.fab svg { width: 22px; height: 22px; }

.fab[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.fab:hover::after { opacity: 1; }

.fab-psy { color: #2f6d60; }
.fab-home { color: var(--purple); }

/* Footer */
.show-foot {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0 0.25rem;
}

.show-foot a {
  color: var(--purple-d);
  font-weight: 650;
}

.show-foot a:hover { text-decoration: underline; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124, 110, 195, 0.35); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 14px rgba(124, 110, 195, 0); }
}

@media (max-width: 760px) {
  .slide-layout { grid-template-columns: 1fr; }
  .slide-art {
    width: 120px;
    margin: 0 auto 0.5rem;
  }
  .options.grid-2,
  .options.grid-3 { grid-template-columns: 1fr; }
  .fab-stack { bottom: 4.5rem; right: 0.75rem; }
  .fab[data-tip]::after { display: none; }
}
