/* Empty State Component v2 — UI Comprehensive Refactor
 * Requires: tokens.css, spacing.css, typography.css
 *
 * Usage:
 *   <div class="empty-state">
 *     <svg class="empty-state__icon"><use href="#i-inbox"/></svg>
 *     <h3 class="empty-state__title">Нет лидов</h3>
 *     <p class="empty-state__body">Попробуйте расширить диапазон.</p>
 *     <div class="empty-state__actions">
 *       <button class="btn btn-primary">Сбросить фильтры</button>
 *     </div>
 *   </div>
 *
 * Modifiers: .empty-state--error  .empty-state--compact
 */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  gap: var(--space-3);
}

/* ── Icon ──────────────────────────────────────────────────────────────── */
.empty-state__icon {
  width: 48px;
  height: 48px;
  font-size: 48px;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.7;
  flex-shrink: 0;
}

/* ── Title ─────────────────────────────────────────────────────────────── */
.empty-state__title {
  font-size: var(--font-2xl);   /* 28px — matches .page-title */
  font-weight: var(--weight-semi, 600);
  color: var(--text-primary);
  margin: 0;
  line-height: var(--line-tight);
}

/* ── Body copy ─────────────────────────────────────────────────────────── */
.empty-state__body {
  font-size: var(--font-sm);    /* .body-sm */
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0;
  line-height: var(--line-relaxed);
}

/* ── Actions row ───────────────────────────────────────────────────────── */
.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-3);
}

/* ── Error modifier ────────────────────────────────────────────────────── */
.empty-state--error .empty-state__icon {
  color: var(--color-error-500);
  opacity: 1;
}

/* ── Compact modifier ──────────────────────────────────────────────────── */
.empty-state--compact {
  padding: var(--space-4) var(--space-3);
  gap: var(--space-2);
}

.empty-state--compact .empty-state__icon {
  width: 32px;
  height: 32px;
  font-size: 32px;
}

.empty-state--compact .empty-state__title {
  font-size: var(--font-lg);   /* 18px */
}
