/* /src/assets/css/utilities.css
   Tiny helpers shared across pages (containers, cards, muted text, misc).
   Relies on tokens from theme.css
*/

/* Containers */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.container-wide {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
}
.card--flat { box-shadow: none; }
.card--tight { padding: var(--space-4); }

/* Text helpers */
.muted { color: var(--muted); }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-strong { font-weight: 600; }

/* Radius + shadows */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.shadow-1 { box-shadow: var(--shadow-1); }
.shadow-2 { box-shadow: var(--shadow-2); }

/* Layout bits */
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.inline { display: inline-flex; align-items: center; gap: var(--space-2); }
.row { display: flex; gap: var(--space-3); }
.row.center { align-items: center; }
.row.between { justify-content: space-between; }

/* Simple badges (colorized per feature CSS if needed) */
.badge {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background: var(--muted);
}

/* Links */
.link {
  color: var(--brand-primary);
  text-decoration: none;
}
.link:hover { text-decoration: underline; }

/* Buttons (lightweight, app-wide) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 14px;
  font-size: var(--text-md);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #111827;
  color: #fff;
  cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn--secondary { background: #fff; color: #111827; }
.btn--brand { background: var(--brand-primary); border-color: var(--brand-primary); }
.btn--danger { background: var(--danger); border-color: var(--danger); }

/* Accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.font-sans { font-family: var(--font-sans) !important; }

