/* RendererState - 渲染器通用状态组件样式 */

.wk-renderer-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--wk-sp-3);
  font-size: var(--wk-text-size-md);
}

/* Loading state */
.wk-renderer-state--loading {
  color: var(--wk-text-secondary);
}

.wk-renderer-state__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--wk-border-subtle);
  border-top-color: var(--wk-brand-primary);
  border-radius: var(--wk-r-full);
  animation: wk-renderer-state-spin 0.8s linear infinite;
}

@keyframes wk-renderer-state-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error state */
.wk-renderer-state--error {
  color: var(--wk-color-danger);
}

/* Empty state */
.wk-renderer-state--empty {
  color: var(--wk-text-secondary);
}

/* Message */
.wk-renderer-state__message {
  text-align: center;
  max-width: 80%;
  word-break: break-word;
}

/* Retry button */
.wk-renderer-state__retry {
  padding: var(--wk-sp-2) var(--wk-sp-4);
  border: 1px solid var(--wk-border-default);
  background: var(--wk-bg-base);
  color: var(--wk-text-primary);
  border-radius: var(--wk-r-sm);
  cursor: pointer;
  font-size: var(--wk-text-size-sm);
  transition: background-color 0.15s ease;
}

.wk-renderer-state__retry:hover {
  background: var(--wk-bg-hover);
}
