/**
 * 🌞 Sunday App Framework — Utility Classes
 * Composable utility classes for rapid UI development.
 * 
 * Usage:
 *   <div class="flex items-center gap-4 p-4">
 *   <span class="text-sm text-muted">
 * 
 * @version 1.1.0
 */

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

/* ===== Flexbox ===== */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

.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; }
.justify-around { justify-content: space-around; }

/* ===== Grid ===== */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.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); }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-full { grid-column: 1 / -1; }

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

/* ===== Spacing - Padding ===== */
.p-0 { padding: 0; }
.p-1 { padding: var(--sunday-space-1); }
.p-2 { padding: var(--sunday-space-2); }
.p-3 { padding: var(--sunday-space-3); }
.p-4 { padding: var(--sunday-space-4); }
.p-5 { padding: var(--sunday-space-5); }
.p-6 { padding: var(--sunday-space-6); }
.p-8 { padding: var(--sunday-space-8); }

.px-2 { padding-left: var(--sunday-space-2); padding-right: var(--sunday-space-2); }
.px-3 { padding-left: var(--sunday-space-3); padding-right: var(--sunday-space-3); }
.px-4 { padding-left: var(--sunday-space-4); padding-right: var(--sunday-space-4); }
.px-6 { padding-left: var(--sunday-space-6); padding-right: var(--sunday-space-6); }

.py-2 { padding-top: var(--sunday-space-2); padding-bottom: var(--sunday-space-2); }
.py-3 { padding-top: var(--sunday-space-3); padding-bottom: var(--sunday-space-3); }
.py-4 { padding-top: var(--sunday-space-4); padding-bottom: var(--sunday-space-4); }
.py-6 { padding-top: var(--sunday-space-6); padding-bottom: var(--sunday-space-6); }

/* ===== Spacing - Margin ===== */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.mt-1 { margin-top: var(--sunday-space-1); }
.mt-2 { margin-top: var(--sunday-space-2); }
.mt-3 { margin-top: var(--sunday-space-3); }
.mt-4 { margin-top: var(--sunday-space-4); }
.mt-6 { margin-top: var(--sunday-space-6); }
.mt-8 { margin-top: var(--sunday-space-8); }

.mb-1 { margin-bottom: var(--sunday-space-1); }
.mb-2 { margin-bottom: var(--sunday-space-2); }
.mb-3 { margin-bottom: var(--sunday-space-3); }
.mb-4 { margin-bottom: var(--sunday-space-4); }
.mb-6 { margin-bottom: var(--sunday-space-6); }
.mb-8 { margin-bottom: var(--sunday-space-8); }

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

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

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

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

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

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Colors ===== */
.text-muted { color: var(--sunday-text-muted); }
.text-accent { color: var(--sunday-accent); }
.text-success { color: var(--sunday-success); }
.text-error { color: var(--sunday-error); }
.text-warning { color: var(--sunday-warning); }
.text-info { color: var(--sunday-info); }

.bg-surface { background: var(--sunday-surface); }
.bg-card { background: var(--sunday-card); }
.bg-success-light { background: var(--sunday-success-light); }
.bg-error-light { background: var(--sunday-error-light); }
.bg-warning-light { background: var(--sunday-warning-light); }
.bg-info-light { background: var(--sunday-info-light); }

/* ===== Borders ===== */
.border { border: 1px solid var(--sunday-line); }
.border-2 { border: 2px solid var(--sunday-line); }
.border-t { border-top: 1px solid var(--sunday-line); }
.border-b { border-bottom: 1px solid var(--sunday-line); }
.border-l { border-left: 1px solid var(--sunday-line); }
.border-r { border-right: 1px solid var(--sunday-line); }

.border-success { border-color: var(--sunday-success); }
.border-error { border-color: var(--sunday-error); }
.border-warning { border-color: var(--sunday-warning); }
.border-info { border-color: var(--sunday-info); }
.border-accent { border-color: var(--sunday-accent); }

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

/* ===== Shadows ===== */
.shadow-sm { box-shadow: var(--sunday-shadow-sm); }
.shadow-md { box-shadow: var(--sunday-shadow-md); }
.shadow-lg { box-shadow: var(--sunday-shadow-lg); }
.shadow-xl { box-shadow: var(--sunday-shadow-xl); }
.shadow-none { box-shadow: none; }

/* ===== Sizing ===== */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }

/* ===== Position ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* ===== Overflow ===== */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

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

/* ===== Opacity ===== */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ===== Transitions ===== */
.transition { transition: all var(--sunday-transition-normal); }
.transition-fast { transition: all var(--sunday-transition-fast); }
.transition-slow { transition: all var(--sunday-transition-slow); }

/* ===== Transform ===== */
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:translate-y-1:hover { transform: translateY(-2px); }

/* ===== Pointer Events ===== */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex-col { flex-direction: column; }
  .md\:grid-cols-1 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .sm\:hidden { display: none; }
  .sm\:flex-col { flex-direction: column; }
  .sm\:text-sm { font-size: var(--sunday-text-sm); }
}

