/* ==========================================================================
   PawCare Veterinary Theme - Utility Classes
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Text Alignment
   --------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ---------------------------------------------------------------------------
   Screen Reader Only
   --------------------------------------------------------------------------- */
.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;
}

/* ---------------------------------------------------------------------------
   Margin Bottom
   --------------------------------------------------------------------------- */
.mb-0  { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--spacing-xs) !important; }
.mb-sm { margin-bottom: var(--spacing-sm) !important; }
.mb-md { margin-bottom: var(--spacing-md) !important; }
.mb-lg { margin-bottom: var(--spacing-lg) !important; }
.mb-xl { margin-bottom: var(--spacing-xl) !important; }

/* ---------------------------------------------------------------------------
   Margin Top
   --------------------------------------------------------------------------- */
.mt-0  { margin-top: 0 !important; }
.mt-xs { margin-top: var(--spacing-xs) !important; }
.mt-sm { margin-top: var(--spacing-sm) !important; }
.mt-md { margin-top: var(--spacing-md) !important; }
.mt-lg { margin-top: var(--spacing-lg) !important; }
.mt-xl { margin-top: var(--spacing-xl) !important; }

/* ---------------------------------------------------------------------------
   Flexbox
   --------------------------------------------------------------------------- */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-col {
  flex-direction: column;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: flex-start;
}

/* ---------------------------------------------------------------------------
   Grid
   --------------------------------------------------------------------------- */
.grid {
  display: grid;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ---------------------------------------------------------------------------
   Visibility
   --------------------------------------------------------------------------- */
.hidden {
  display: none !important;
}

.visible-mobile {
  display: none !important;
}

.hidden-mobile {
  display: block !important;
}

@media (max-width: 767px) {
  .visible-mobile {
    display: block !important;
  }

  .hidden-mobile {
    display: none !important;
  }
}

/* ---------------------------------------------------------------------------
   Width Utilities
   --------------------------------------------------------------------------- */
.w-full { width: 100%; }
.max-w-narrow { max-width: var(--container-narrow); }
.max-w-default { max-width: var(--container-max-width); }
.max-w-wide { max-width: var(--container-wide); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------------------
   Padding Utilities
   --------------------------------------------------------------------------- */
.p-0  { padding: 0 !important; }
.p-sm { padding: var(--spacing-sm) !important; }
.p-md { padding: var(--spacing-md) !important; }
.p-lg { padding: var(--spacing-lg) !important; }
.p-xl { padding: var(--spacing-xl) !important; }

/* ---------------------------------------------------------------------------
   Color Utilities
   --------------------------------------------------------------------------- */
.text-primary   { color: var(--color-text-primary) !important; }
.text-secondary { color: var(--color-text-secondary) !important; }
.text-muted     { color: var(--color-text-muted) !important; }
.text-accent    { color: var(--color-accent) !important; }
.text-white     { color: var(--color-on-dark) !important; }

.bg-primary   { background-color: var(--color-bg-primary) !important; }
.bg-secondary { background-color: var(--color-bg-secondary) !important; }
.bg-tertiary  { background-color: var(--color-bg-tertiary) !important; }

/* ---------------------------------------------------------------------------
   Border / Radius Utilities
   --------------------------------------------------------------------------- */
.rounded-sm   { border-radius: var(--radius-sm) !important; }
.rounded-md   { border-radius: var(--radius-md) !important; }
.rounded-lg   { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* ---------------------------------------------------------------------------
   Shadow Utilities
   --------------------------------------------------------------------------- */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
