/* ============================================
   HATWIN — Utility Classes
   ============================================ */

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.self-center { align-self: center; }

/* Spacing: margin */
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }

/* Spacing > child */
.space-x-2 > * { margin-right: 0.5rem; }
.space-x-3 > * { margin-right: 0.75rem; }
.space-y-2 > * { margin-bottom: 0.5rem; }
.space-y-3 > * { margin-bottom: 0.75rem; }
.space-y-4 > * { margin-bottom: 1rem; }
.space-y-6 > * { margin-bottom: 1.5rem; }
.space-y-8 > * { margin-bottom: 2rem; }

/* Spacing: padding */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }

/* Border */
.border { border: 1px solid var(--line); }
.border-r { border-right: 1px solid var(--line); }
.border-l { border-left: 1px solid var(--line); }
.border-t { border-top: 1px solid var(--line); }
.border-b { border-bottom: 1px solid var(--line); }
.border-gray-200 { border-color: var(--line); }
.border-gray-300 { border-color: var(--muted-2); }

/* Border radius */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Background */
.bg-white { background-color: var(--paper); }
.bg-primary { background-color: var(--navy); }
.bg-secondary { background-color: var(--gold-soft); }
.bg-neutral { background-color: var(--canvas); }
.bg-pattern {
    background-image: radial-gradient(var(--line) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Text */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.text-center { text-align: center; }
.text-gray-400 { color: var(--muted-2); }
.text-gray-500 { color: var(--muted); }
.text-gray-600 { color: var(--ink); }
.text-gray-700 { color: var(--ink); }
.text-white { color: var(--paper); }
.text-primary { color: var(--navy); }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

/* Shadow */
.shadow-soft { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }

/* Hover */
.hover\:bg-gray-100:hover { background-color: var(--line-soft); }
.hover\:bg-gray-50:hover { background-color: var(--canvas); }
.hover\:bg-primary\/90:hover { background-color: rgba(26, 54, 93, 0.9); }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.hover\:bg-purple-700:hover { background-color: #7e22ce; }
.hover\:text-gray-600:hover { color: var(--ink); }

/* Transition */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Position */
.fixed { position: fixed; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.bottom-10 { bottom: 2.5rem; }
.left-1\/2 { left: 50%; }
.transform { transform: translate(-50%, -50%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Z-index */
.z-50 { z-index: 50; }

/* Misc */
.min-h-screen { min-height: 100vh; }
.overflow-y-auto { overflow-y: auto; }
.hidden { display: none; }
.content-auto { content-visibility: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl.mx-auto { max-width: 52.5rem; }

/* Animation */
@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
.animate-bounce { animation: bounce 1s infinite; }