/* ==========================================================================
   Component Styles — Offmind POC
   Shared component patterns used across screens.
   ========================================================================== */

/* ── Card ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-base);
  box-shadow: var(--shadow-sm);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

/* ── Progress Bar ──────────────────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width var(--transition-base);
}

/* ── Chip / Tag ────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  background: var(--surface-hover);
  color: var(--text-muted);
}

.chip--primary {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
}

.chip--success {
  background: var(--success-light);
  color: var(--success);
}

.chip--error {
  background: var(--error-light);
  color: var(--error);
}

/* ── Divider ───────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-base) 0;
}

/* ── Avatar ────────────────────────────────────────────────────────────── */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 28px;
}

/* ── Skeleton Loading ──────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--surface-hover) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Section ───────────────────────────────────────────────────────────── */
.section {
  margin-top: var(--space-xl);
}

.section__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
}
