/*
 * Empty state — structure.
 *
 * Three sizes of nothing, and they are not the same thing:
 *   --first   nothing yet, and that is normal      -> teach, offer the action
 *   --filtered  nothing matches the current filter -> offer to clear it
 *   --error   something failed                     -> say what, offer retry
 * Using one generic "No results" for all three is the mistake this element
 * exists to stop.
 *
 * DO NOT edit this file to re-skin — override tokens in the .tokens.css file.
 */

.sp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 380px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
  font-family: var(--font-ui, "SF Pro Text", -apple-system, sans-serif);
  letter-spacing: var(--tracking-ui, -0.15px);
}

.sp-empty--inline {
  padding: 24px 16px;
}

.sp-empty__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--sp-empty-icon, var(--ink-faint, #9e9e9e));
}

.sp-empty--error .sp-empty__icon {
  color: var(--sp-empty-error, #dc2626);
}

.sp-empty__title {
  margin: 0;
  color: var(--ink, #292929);
  font-size: var(--text-md, 14px);
  font-weight: 500;
  line-height: 1.35;
}

.sp-empty__body {
  margin: 0;
  color: var(--ink-faint, #9e9e9e);
  font-size: var(--text-sm, 13px);
  line-height: 1.5;
}

.sp-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.sp-empty__action {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill, 9999px);
  background: var(--sp-empty-action, var(--ink, #292929));
  color: var(--sp-empty-action-ink, #fff);
  font: 500 var(--text-sm, 13px) / 1.2 inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: filter var(--dur-instant, 150ms) var(--ease-out, ease-out);
}

.sp-empty__action:hover { filter: brightness(1.08); }

.sp-empty__action--quiet {
  background: transparent;
  color: var(--ink-muted, #5d5d5d);
  border-color: var(--border, #e5e5e5);
}

.sp-empty__action--quiet:hover {
  background: var(--surface-hover, #f3f3f3);
  color: var(--ink, #292929);
  filter: none;
}

.sp-empty__action:focus-visible {
  outline: 2px solid var(--sp-empty-focus, var(--accent, #3b82f6));
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .sp-empty__action { transition: none; }
}
