/* ====== Base / reset ====== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { background: var(--bg-base); color: var(--text-primary); font-family: var(--font-stack); }
body {
  min-height: 100vh;
  overflow-x: hidden;            /* nikdy horizontální scroll */
  background:
    radial-gradient(1100px 700px at 0% 100%, rgba(110, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(58, 123, 255, 0.10), transparent 70%),
    linear-gradient(180deg, #050811 0%, #0A0F1F 100%);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Fixní 1920px design width – Figma baseline.
   Sidebar je absolutně NAD obsahem, main jde od levého okraje. */
.app {
  position: relative;
  width: 1920px;
  margin: 0 auto;
  min-height: 100vh;
}

main {
  display: block;
}

/* Explicit padding-top na všechny mount divy — sticky hero pak má vždy gap */
main > div[id^="mount-"] {
  padding-top: 0;
}
main > div[id^="mount-"]:first-of-type {
  padding-top: 64px;
}

main {
  position: relative;
  padding: 0 0 96px 0;
  min-width: 0;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 var(--s-4) 0;
  padding: 0 var(--side-padding-right) 0 var(--side-padding-left);
  color: var(--text-primary);
}

.section { margin: var(--s-7) 0; }
.section.tight { margin: var(--s-5) 0; }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; }

/* Focusable elements – globální fokus styling */
[data-focusable] {
  outline: none;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
:focus { outline: none; }

::-webkit-scrollbar { width: 0; height: 0; }

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--stroke-strong);
  color: var(--text-primary);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: all var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-card);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Help indicator */
.help-hint {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  z-index: 100;
  pointer-events: none;
  opacity: 0.55;
}
.help-hint kbd {
  background: var(--bg-elev-2);
  border: 1px solid var(--stroke-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-stack);
  color: var(--text-primary);
}
