:host {
  display: block;
}

.hb-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--hb-spacing-lg);
}

.hb-loading--fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--hb-color-bg-mask);
  z-index: var(--hb-z-index-modal);
}

.hb-loading__spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hb-spacing-sm);
}

.hb-loading__circle {
  width: 32px;
  height: 32px;
  border: 3px solid var(--hb-color-border-secondary);
  border-top-color: var(--hb-color-primary);
  border-radius: 50%;
  animation: hb-spin 0.8s linear infinite;
}

/* 尺寸变体（size prop） */
.hb-loading--small .hb-loading__circle {
  width: 20px;
  height: 20px;
  border-width: 2px;
}
.hb-loading--large .hb-loading__circle {
  width: 44px;
  height: 44px;
  border-width: 4px;
}

.hb-loading__text {
  font-size: var(--hb-font-size-sm);
  color: var(--hb-color-primary);
}

@keyframes hb-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
