/* ═══════════════════════════════════════════════════════════════
   UTILITIES — Helper Classes
   ═══════════════════════════════════════════════════════════════ */

/* ─── DISPLAY ─── */
.d-none      { display: none; }
.d-block     { display: block; }
.d-flex      { display: flex; }
.d-grid      { display: grid; }
.d-inline    { display: inline; }
.d-inline-block { display: inline-block; }

/* ─── FLEX ─── */
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.flex-1       { flex: 1; }

/* ─── TEXT ─── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary  { color: var(--text-tertiary); }
.text-accent    { color: var(--color-primary-400); }

.font-heading { font-family: var(--font-heading); }
.font-body    { font-family: var(--font-body); }

/* ─── SPACING ─── */
.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }
.mb-4    { margin-bottom: var(--space-4); }
.mb-8    { margin-bottom: var(--space-8); }

.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ─── WIDTH ─── */
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ─── VISIBILITY ─── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── RESPONSIVE VISIBILITY ─── */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ─── TRUNCATE ─── */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
