/**
 * Bosaname Utility Classes
 * Utilizes !important to ensure utility overrides work correctly across all page-specific styles.
 */

/* Layout & Container */
.bosa-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}
@media (min-width: 769px) {
  .bosa-container {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

/* Flexbox & Grid Utilities */
.flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.items-center {
  align-items: center !important;
}
.justify-center {
  justify-content: center !important;
}
.justify-between {
  justify-content: space-between !important;
}
.flex-wrap {
  flex-wrap: wrap !important;
}

.grid {
  display: grid !important;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Spacing & Gap Utilities */
.gap-xs {
  gap: var(--space-xs) !important;
}
.gap-sm {
  gap: var(--space-sm) !important;
}
.gap-md {
  gap: var(--space-md) !important;
}
.gap-lg {
  gap: var(--space-lg) !important;
}
.gap-xl {
  gap: var(--space-xl) !important;
}

.m-0 {
  margin: 0 !important;
}
.mt-auto {
  margin-top: auto !important;
}
.mb-auto {
  margin-bottom: auto !important;
}

/* Colors - Backgrounds */
.bg-primary {
  background-color: var(--bosa-primary) !important;
}
.bg-canvas {
  background-color: var(--bosa-canvas) !important;
}
.bg-canvas-dark {
  background-color: var(--bosa-canvas-dark) !important;
}
.bg-surface {
  background-color: var(--bosa-surface) !important;
}
.bg-transparent {
  background-color: transparent !important;
}

/* Colors - Text */
.text-primary {
  color: var(--bosa-primary) !important;
}
.text-ink {
  color: var(--bosa-ink) !important;
}
.text-charcoal {
  color: var(--bosa-charcoal) !important;
}
.text-muted {
  color: var(--bosa-muted) !important;
}
.text-stone {
  color: var(--bosa-stone) !important;
}
.text-white {
  color: var(--bosa-on-dark) !important;
}

/* Typography Utilities */
.text-center {
  text-align: center !important;
}
.text-left {
  text-align: left !important;
}
.text-right {
  text-align: right !important;
}

.font-bold {
  font-weight: 700 !important;
}
.font-semibold {
  font-weight: 600 !important;
}
.font-medium {
  font-weight: 500 !important;
}
.font-normal {
  font-weight: 400 !important;
}

.uppercase {
  text-transform: uppercase !important;
}

/* Borders & Radii */
.border { border: 1px solid var(--bosa-border) !important; }
.border-0 { border: 0 !important; }
.border-t { border-top: 1px solid var(--bosa-border) !important; }
.border-r { border-right: 1px solid var(--bosa-border) !important; }
.border-b { border-bottom: 1px solid var(--bosa-border) !important; }
.border-l { border-left: 1px solid var(--bosa-border) !important; }

.border-primary { border-color: var(--bosa-primary) !important; }
.border-transparent { border-color: transparent; }

.rounded-sm {
  border-radius: var(--rounded-sm) !important;
}
.rounded-md {
  border-radius: var(--rounded-md) !important;
}
.rounded-lg {
  border-radius: var(--rounded-lg) !important;
}
.rounded-xl {
  border-radius: var(--rounded-xl) !important;
}
.rounded-full {
  border-radius: var(--rounded-full) !important;
}

/* Decorative */
.shadow-card {
  box-shadow: var(--shadow-card) !important;
}
.shadow-subtle {
  box-shadow: var(--shadow-subtle) !important;
}
