/* ============================================================
   Data display — Card, Badge, Tag, Avatar, Stat
   ============================================================ */

/* ---------- Card ---------- */
.fcs-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.fcs-card--elevated { border-color: transparent; box-shadow: var(--shadow-md); }
.fcs-card--outlined { box-shadow: none; }
.fcs-card--interactive {
  cursor: pointer;
  transition: var(--transition-colors), transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.fcs-card--interactive:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-strong); }
.fcs-card--interactive:focus-visible { outline: none; box-shadow: var(--ring-focus); }

.fcs-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border-subtle); }
.fcs-card__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 16px; letter-spacing: -0.01em; color: var(--text-primary); margin: 0; }
.fcs-card__subtitle { font-family: var(--font-body); font-size: 12.5px; color: var(--text-secondary); margin: 2px 0 0; }
.fcs-card__body { padding: 18px; }
.fcs-card__footer { padding: 14px 18px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 10px; }

/* ---------- Badge ---------- */
.fcs-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: 11.5px; letter-spacing: 0.03em; line-height: 1;
  padding: 4px 9px; border-radius: var(--radius-full); white-space: nowrap;
}
.fcs-badge--sm { font-size: 10.5px; padding: 3px 7px; }
.fcs-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fcs-badge--neutral { background: var(--neutral-100); color: var(--neutral-700); }
.fcs-badge--brand   { background: var(--red-50); color: var(--red-700); }
.fcs-badge--success { background: var(--success-bg); color: var(--success-fg); }
.fcs-badge--warning { background: var(--warning-bg); color: var(--warning-fg); }
.fcs-badge--danger  { background: var(--danger-bg); color: var(--danger-fg); }
.fcs-badge--info    { background: var(--info-bg); color: var(--info-fg); }
.fcs-badge--solid.fcs-badge--neutral { background: var(--charcoal); color: #fff; }
.fcs-badge--solid.fcs-badge--brand   { background: var(--brand-primary); color: #fff; }
.fcs-badge--solid.fcs-badge--success { background: var(--success-solid); color: #fff; }
.fcs-badge--solid.fcs-badge--warning { background: var(--warning-solid); color: var(--slate-900); }
.fcs-badge--solid.fcs-badge--danger  { background: var(--danger-solid); color: #fff; }
.fcs-badge--solid.fcs-badge--info    { background: var(--info-solid); color: #fff; }

/* ---------- Tag / Chip ---------- */
.fcs-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: var(--fw-medium);
  color: var(--text-secondary); background: var(--surface-card);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 3px 8px; line-height: 1.4; white-space: nowrap;
}
.fcs-tag__remove { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); border-radius: 3px; margin: 0 -3px 0 0; border: 0; background: none; padding: 1px; }
.fcs-tag__remove:hover { color: var(--danger-fg); background: var(--danger-bg); }

/* ---------- Avatar ---------- */
.fcs-avatar {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  background: var(--charcoal); color: #fff;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  overflow: visible; flex: none; border-radius: var(--radius-full);
}
.fcs-avatar__img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.fcs-avatar__initials { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.fcs-avatar--square { border-radius: var(--radius-md); }
.fcs-avatar--xs { width: 24px; height: 24px; font-size: 10px; }
.fcs-avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.fcs-avatar--md { width: 40px; height: 40px; font-size: 14px; }
.fcs-avatar--lg { width: 52px; height: 52px; font-size: 18px; }
.fcs-avatar--xl { width: 72px; height: 72px; font-size: 26px; }
.fcs-avatar__status { position: absolute; right: 0; bottom: 0; width: 30%; height: 30%; min-width: 8px; min-height: 8px; border-radius: 50%; border: 2px solid var(--surface-card); box-sizing: border-box; }
.fcs-avatar__status--online  { background: var(--success-solid); }
.fcs-avatar__status--away    { background: var(--amber-500); }
.fcs-avatar__status--busy    { background: var(--danger-solid); }
.fcs-avatar__status--offline { background: var(--neutral-400); }

/* ---------- Stat / KPI ---------- */
.fcs-stat { display: flex; flex-direction: column; gap: 6px; }
.fcs-stat__label { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.fcs-stat__value { font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: 30px; line-height: 1; color: var(--text-primary); }
.fcs-stat__value small { font-size: 0.5em; font-weight: 500; color: var(--text-muted); }
.fcs-stat__delta { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 12.5px; font-weight: var(--fw-medium); }
.fcs-stat__delta--up   { color: var(--success-fg); }
.fcs-stat__delta--down { color: var(--danger-fg); }
.fcs-stat__delta--flat { color: var(--text-muted); }
