/* Tlačítka podle DESIGN.md: pilulky, primární na akcentu, obrysové, ikonové 44 px. */

.button {
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button[hidden] {
  display: none;
}

.button--primary {
  background: var(--st-accent);
  color: var(--st-on-accent);
}

.button--primary:hover {
  background: var(--st-accent-hover);
  color: var(--st-on-accent);
}

.button--outline {
  background: transparent;
  color: var(--st-text-primary);
  box-shadow: inset 0 0 0 1.5px var(--st-text-primary);
}

.button--outline:hover {
  background: var(--st-surface-subtle);
  color: var(--st-text-primary);
}

.button--ghost {
  background: transparent;
  color: var(--st-text-secondary);
}

.button--ghost:hover {
  background: var(--st-surface-subtle);
  color: var(--st-text-primary);
}

.button--block {
  width: 100%;
}

.button--compact {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
  line-height: 20px;
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--st-text-primary);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--st-surface-subtle);
}

/* Rovnocenná tmavá tlačítka (button-dark z DESIGN.md): cookies, potvrzovací dialogy. */
.button--dark {
  background: var(--st-toggle-on);
  color: var(--st-toggle-on-text);
}

.button--dark:hover {
  background: var(--st-toggle-on-hover);
  color: var(--st-toggle-on-text);
}
