/**
 * Loading Overlay Styles
 * 전역 로딩 표시 스타일
 */

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  backdrop-filter: blur(2px);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 중앙 카드 */
.loading-box {
  background: var(--bg-primary, #fff);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 200px;
  max-width: 320px;
  text-align: center;
}

/* 스피너 */
.loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border-light, #e5e7eb);
  border-top-color: var(--color-primary, #3b82f6);
  border-radius: 50%;
  animation: loading-spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

/* 주 메시지 */
.loading-message {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  white-space: nowrap;
}

/* 3초 초과 힌트 */
.loading-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  min-height: 1.2em;   /* 힌트 없을 때도 레이아웃 유지 */
  white-space: normal;
}
