/* ============================================================================
   Utilities — minimal helpers for spacing, text, flex, display.
   Use sparingly; prefer composed components.
   ============================================================================ */

/* Display */
.d-none   { display: none !important; }
.d-block  { display: block; }
.d-inline { display: inline; }
.d-flex   { display: flex; }
.d-grid   { display: grid; }
.d-iflex  { display: inline-flex; }

/* Visibility helpers */
.hide-mobile { display: none; }
.show-mobile { display: inherit; }
@media (min-width: 768px) {
  .hide-mobile { display: inherit; }
  .show-mobile { display: none; }
  .hide-desktop { display: none !important; }
}

/* Flex helpers */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1   { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.justify-start   { justify-content: flex-start; }

/* Gap */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* Margin (just what is realistically reused) */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

/* Padding */
.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }

/* Text */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--color-muted); }
.text-primary{ color: var(--color-primary); }
.text-success{ color: var(--color-success); }
.text-warning{ color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-bold   { font-weight: var(--fw-semibold); }
.text-uppercase { text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.text-sm  { font-size: var(--fs--1); }
.text-xs  { font-size: var(--fs--2); }
.text-lg  { font-size: var(--fs-1); }
.text-num { font-variant-numeric: tabular-nums; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Width helpers */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Backgrounds / borders */
.bg-surface  { background: var(--color-surface); }
.bg-bg       { background: var(--color-bg); }
.bg-success-soft { background: var(--color-success-soft); }
.bg-warning-soft { background: var(--color-warning-soft); }
.bg-danger-soft  { background: var(--color-danger-soft); }
.bg-primary-soft { background: var(--color-primary-soft); }

.border    { border: 1px solid var(--color-border); }
.border-t  { border-top: 1px solid var(--color-border); }
.border-b  { border-bottom: 1px solid var(--color-border); }
.rounded   { border-radius: var(--radius); }
.rounded-lg{ border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.shadow-1  { box-shadow: var(--shadow-1); }
.shadow-2  { box-shadow: var(--shadow-2); }
.shadow-3  { box-shadow: var(--shadow-3); }
