/**
 * Vibekit Utilities
 * Minimal utility classes for common patterns.
 * Only add utilities that are used frequently.
 */

/* ============================================
 * ACCESSIBILITY
 * ============================================ */

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

/* ============================================
 * DISPLAY
 * ============================================ */
.hidden { display: none !important; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

/* ============================================
 * FLEXBOX
 * ============================================ */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-none { flex: none; }

/* ============================================
 * GRID
 * ============================================ */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
 * GAP
 * ============================================ */
.gap-1 { gap: var(--vk-space-1); }
.gap-2 { gap: var(--vk-space-2); }
.gap-3 { gap: var(--vk-space-3); }
.gap-4 { gap: var(--vk-space-4); }
.gap-6 { gap: var(--vk-space-6); }
.gap-8 { gap: var(--vk-space-8); }

/* ============================================
 * SPACING - MARGIN
 * ============================================ */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: var(--vk-space-2); }
.mt-4 { margin-top: var(--vk-space-4); }
.mt-6 { margin-top: var(--vk-space-6); }
.mb-2 { margin-bottom: var(--vk-space-2); }
.mb-4 { margin-bottom: var(--vk-space-4); }
.mb-6 { margin-bottom: var(--vk-space-6); }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

/* ============================================
 * SPACING - PADDING
 * ============================================ */
.p-0 { padding: 0; }
.p-2 { padding: var(--vk-space-2); }
.p-4 { padding: var(--vk-space-4); }
.p-6 { padding: var(--vk-space-6); }
.px-4 { padding-left: var(--vk-space-4); padding-right: var(--vk-space-4); }
.py-4 { padding-top: var(--vk-space-4); padding-bottom: var(--vk-space-4); }

/* ============================================
 * WIDTH
 * ============================================ */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-form { max-width: var(--vk-form-max-width); }
.max-w-content { max-width: var(--vk-content-max-width); }

/* ============================================
 * TEXT
 * ============================================ */
.text-xs { font-size: var(--vk-text-xs); }
.text-sm { font-size: var(--vk-text-sm); }
.text-base { font-size: var(--vk-text-base); }
.text-lg { font-size: var(--vk-text-lg); }
.text-xl { font-size: var(--vk-text-xl); }
.text-2xl { font-size: var(--vk-text-2xl); }

.font-normal { font-weight: var(--vk-weight-normal); }
.font-medium { font-weight: var(--vk-weight-medium); }
.font-semibold { font-weight: var(--vk-weight-semibold); }
.font-bold { font-weight: var(--vk-weight-bold); }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-primary { color: var(--vk-color-text); }
.text-secondary { color: var(--vk-color-text-secondary); }
.text-muted { color: var(--vk-color-text-muted); }
.text-danger { color: var(--vk-color-danger); }
.text-success { color: var(--vk-color-success); }

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

/* ============================================
 * BORDERS
 * ============================================ */
.border { border: 1px solid var(--vk-color-border); }
.border-t { border-top: 1px solid var(--vk-color-border); }
.border-b { border-bottom: 1px solid var(--vk-color-border); }
.border-0 { border: none; }
.rounded { border-radius: var(--vk-radius-md); }
.rounded-lg { border-radius: var(--vk-radius-lg); }

/* ============================================
 * BACKGROUND
 * ============================================ */
.bg-base { background-color: var(--vk-color-bg); }
.bg-subtle { background-color: var(--vk-color-bg-subtle); }
.bg-muted { background-color: var(--vk-color-bg-muted); }

/* ============================================
 * CURSOR
 * ============================================ */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

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

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
