/* ============================================================
   runruun-utils.css – replaces cdn.tailwindcss.com
   Only the utility classes actually used in layout templates
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

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

/* ---- Flex ---- */
.flex-1 { flex: 1 1 0% !important; }
.flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }

/* ---- Grid ---- */
.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; }

/* ---- Gap / Space ---- */
.gap-1\.2 { gap: 0.3rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-3\.5 { gap: 0.875rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.space-y-1 > * + * { margin-top: 0.25rem !important; }
.space-y-2 > * + * { margin-top: 0.5rem !important; }
.space-y-3 > * + * { margin-top: 0.75rem !important; }
.space-y-3\.5 > * + * { margin-top: 0.875rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-6 > * + * { margin-top: 1.5rem !important; }
.space-y-8 > * + * { margin-top: 2rem !important; }

/* ---- Position ---- */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0 !important; }
.top-0 { top: 0 !important; }
.top-4 { top: 1rem !important; }
.right-0 { right: 0 !important; }
.right-4 { right: 1rem !important; }
.left-0 { left: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-50 { z-index: 50 !important; }
.z-\[999\] { z-index: 999 !important; }
.z-\[1000\] { z-index: 1000 !important; }
.z-\[9999\] { z-index: 9999 !important; }

/* ---- Width / Height ---- */
.w-1 { width: 0.25rem !important; }
.w-2 { width: 0.5rem !important; }
.w-3\.5 { width: 0.875rem !important; }
.w-4 { width: 1rem !important; }
.w-5 { width: 1.25rem !important; }
.w-6 { width: 1.5rem !important; }
.w-9 { width: 2.25rem !important; }
.w-36 { width: 9rem !important; }
.w-full { width: 100% !important; }
.w-\[180px\] { width: 180px !important; }
.w-\[280px\] { width: 280px !important; }
.h-2\.5 { height: 0.625rem !important; }
.h-3\.5 { height: 0.875rem !important; }
.h-4 { height: 1rem !important; }
.h-5 { height: 1.25rem !important; }
.h-6 { height: 1.5rem !important; }
.h-9 { height: 2.25rem !important; }
.h-28 { height: 7rem !important; }
.h-48 { height: 12rem !important; }
.h-full { height: 100% !important; }
.min-w-\[48px\] { min-width: 48px !important; }
.max-w-sm { max-width: 24rem !important; }
.max-w-md { max-width: 28rem !important; }
.max-w-xl { max-width: 36rem !important; }
.max-w-\[800px\] { max-width: 800px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* ---- Margin ---- */
.mt-0\.5 { margin-top: 0.125rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-1\.5 { margin-top: 0.375rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-2\.5 { margin-top: 0.625rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.ml-1\.5 { margin-left: 0.375rem !important; }
.mr-1\.5 { margin-right: 0.375rem !important; }
.my-0\.5 { margin-top: 0.125rem !important; margin-bottom: 0.125rem !important; }

/* ---- Padding ---- */
.p-0\.5 { padding: 0.125rem !important; }
.p-1 { padding: 0.25rem !important; }
.p-1\.5 { padding: 0.375rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-3\.5 { padding: 0.875rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-8 { padding: 2rem !important; }
.px-1\.2 { padding-left: 0.3rem !important; padding-right: 0.3rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-3\.5 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-0\.2 { padding-top: 0.05rem !important; padding-bottom: 0.05rem !important; }
.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-3\.5 { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4\.5 { padding-top: 1.125rem !important; padding-bottom: 1.125rem !important; }
.py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3\.5 { padding-top: 0.875rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pt-6 { padding-top: 1.5rem !important; }
.pt-8 { padding-top: 2rem !important; }

/* ---- Typography ---- */
.text-\[7px\] { font-size: 7px !important; }
.text-\[8px\] { font-size: 8px !important; }
.text-\[9px\] { font-size: 9px !important; }
.text-\[10px\] { font-size: 10px !important; }
.text-\[11px\] { font-size: 11px !important; }
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }  /* Fallback for md:text-2xl */
.text-3xl { font-size: 1.875rem !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-black { font-weight: 900 !important; }
.tracking-tight { letter-spacing: -0.025em !important; }
.tracking-normal { letter-spacing: 0 !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.leading-none { line-height: 1 !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-snug { line-height: 1.375 !important; }
.leading-normal { line-height: 1.5 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }

/* ---- Colors – text ---- */
.text-white { color: #fff !important; }
.text-gray-300 { color: #d1d5db !important; }
.text-gray-400 { color: #9ca3af !important; }
.text-gray-500 { color: #6b7280 !important; }
.text-gray-600 { color: #4b5563 !important; }
.text-gray-700 { color: #374151 !important; }
.text-gray-750 { color: #333d4b !important; }
.text-gray-800 { color: #1f2937 !important; }
.text-gray-850 { color: #18202e !important; }
.text-gray-900 { color: #111827 !important; }
.text-green-600 { color: #16a34a !important; }
.text-green-700 { color: #15803d !important; }
.text-green-800 { color: #166534 !important; }
.text-blue-600 { color: #2563eb !important; }
.text-red-600 { color: #dc2626 !important; }
.text-orange-600 { color: #ea580c !important; }
.text-yellow-500 { color: #eab308 !important; }
.text-yellow-600 { color: #ca8a04 !important; }

/* ---- Colors – background ---- */
.bg-white { background-color: #fff !important; }
.bg-black { background-color: #000 !important; }
.bg-gray-50 { background-color: #f9fafb !important; }
.bg-gray-100 { background-color: #f3f4f6 !important; }
.bg-green-50 { background-color: #f0fdf4 !important; }
.bg-green-600 { background-color: #16a34a !important; }
.bg-blue-50 { background-color: #eff6ff !important; }
.bg-blue-500 { background-color: #3b82f6 !important; }
.bg-red-500 { background-color: #ef4444 !important; }
.bg-orange-50 { background-color: #fff7ed !important; }
.bg-yellow-50 { background-color: #fefce8 !important; }
.bg-transparent { background-color: transparent !important; }
.bg-opacity-60 { --bg-opacity: 0.6; }
.bg-black\/40 { background-color: rgba(0,0,0,0.4) !important; }
.bg-green-950\/20 { background-color: rgba(5,46,22,0.20) !important; }
.bg-green-50\/70 { background-color: rgba(240,253,244,0.70) !important; }

/* ---- Border ---- */
.border { border-width: 1px !important; border-style: solid !important; }
.border-2 { border-width: 2px !important; border-style: solid !important; }
.border-b { border-bottom-width: 1px !important; border-bottom-style: solid !important; }
.border-t { border-top-width: 1px !important; border-top-style: solid !important; }
.border-t-8 { border-top-width: 8px !important; border-top-style: solid !important; }
.border-r { border-right-width: 1px !important; border-right-style: solid !important; }
.border-dashed { border-style: dashed !important; }
.border-none { border: none !important; }
.border-gray-100 { border-color: #f3f4f6 !important; }
.border-gray-200 { border-color: #e5e7eb !important; }
.border-green-100 { border-color: #dcfce7 !important; }
.border-green-600 { border-color: #16a34a !important; }
.border-white { border-color: #fff !important; }

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

/* ---- Shadow ---- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25) !important; }

/* ---- Overflow ---- */
.overflow-hidden { overflow: hidden !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* ---- Object / Aspect ---- */
.object-cover { object-fit: cover !important; }
.aspect-video { aspect-ratio: 16/9 !important; }
.aspect-\[16\/10\] { aspect-ratio: 16/10 !important; }
.aspect-\[21\/9\] { aspect-ratio: 21/9 !important; }

/* ---- Cursor / Pointer ---- */
.cursor-pointer { cursor: pointer !important; }
.cursor-not-allowed { cursor: not-allowed !important; }
.pointer-events-none { pointer-events: none !important; }

/* ---- Opacity ---- */
.opacity-0 { opacity: 0 !important; }

/* ---- Transition ---- */
.transition-all { transition: all 0.15s ease !important; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease !important; }
.transition-opacity { transition: opacity 0.15s ease !important; }
.transition-transform { transition: transform 0.15s ease !important; }
.duration-150 { transition-duration: 150ms !important; }
.duration-200 { transition-duration: 200ms !important; }
.duration-300 { transition-duration: 300ms !important; }
.duration-350 { transition-duration: 350ms !important; }

/* ---- Transform ---- */
.scale-\[1\.03\] { transform: scale(1.03) !important; }
.scale-102 { transform: scale(1.02) !important; }
.-translate-x-full { transform: translateX(-100%) !important; }
.translate-x-0 { transform: translateX(0) !important; }

/* ---- Group ---- */
.group { }
.group:hover .group-hover\:scale-\[1\.03\] { transform: scale(1.03) !important; }
.group:hover .group-hover\:scale-102 { transform: scale(1.02) !important; }
.group:hover .group-hover\:text-green-600 { color: #16a34a !important; }

/* ---- Focus ---- */
.focus\:outline-none:focus { outline: none !important; }
.focus\:border-green-500:focus { border-color: #22c55e !important; }

/* ---- Hover ---- */
.hover\:bg-gray-50:hover { background-color: #f9fafb !important; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6 !important; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb !important; }
.hover\:bg-green-50\/70:hover { background-color: rgba(240,253,244,0.70) !important; }
.hover\:bg-green-600:hover { background-color: #16a34a !important; }
.hover\:border-green-500:hover { border-color: #22c55e !important; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1) !important; }
.hover\:text-gray-500:hover { color: #6b7280 !important; }
.hover\:text-gray-600:hover { color: #4b5563 !important; }
.hover\:text-green-600:hover { color: #16a34a !important; }
.hover\:text-white:hover { color: #fff !important; }

/* ---- Dark Mode (html[data-theme="dark"]) ---- */
html[data-theme="dark"] .dark\:bg-\[#0f1013\] { background-color: #0f1013 !important; }
html[data-theme="dark"] .dark\:bg-gray-800 { background-color: #1f2937 !important; }
html[data-theme="dark"] .dark\:bg-gray-900 { background-color: #111827 !important; }
html[data-theme="dark"] .dark\:bg-gray-950 { background-color: #030712 !important; }
html[data-theme="dark"] .dark\:bg-green-500 { background-color: #22c55e !important; }
html[data-theme="dark"] .dark\:bg-green-950\/20 { background-color: rgba(5,46,22,0.20) !important; }
html[data-theme="dark"] .dark\:border-gray-800 { border-color: #1f2937 !important; }
html[data-theme="dark"] .dark\:border-gray-900 { border-color: #111827 !important; }
html[data-theme="dark"] .dark\:border-green-900\/30 { border-color: rgba(20,83,45,0.30) !important; }
html[data-theme="dark"] .dark\:hover\:bg-gray-700:hover { background-color: #374151 !important; }
html[data-theme="dark"] .dark\:hover\:bg-gray-800:hover { background-color: #1f2937 !important; }
html[data-theme="dark"] .dark\:hover\:bg-gray-900:hover { background-color: #111827 !important; }
html[data-theme="dark"] .dark\:hover\:bg-green-950\/20:hover { background-color: rgba(5,46,22,0.20) !important; }
html[data-theme="dark"] .dark\:hover\:border-green-500:hover { border-color: #22c55e !important; }
html[data-theme="dark"] .dark\:hover\:text-gray-200:hover { color: #e5e7eb !important; }
html[data-theme="dark"] .dark\:hover\:text-green-400:hover { color: #4ade80 !important; }
html[data-theme="dark"] .dark\:hover\:text-green-450:hover { color: #3dd68c !important; }
html[data-theme="dark"] .dark\:text-white { color: #fff !important; }
html[data-theme="dark"] .dark\:text-gray-100 { color: #f3f4f6 !important; }
html[data-theme="dark"] .dark\:text-gray-200 { color: #e5e7eb !important; }
html[data-theme="dark"] .dark\:text-gray-300 { color: #d1d5db !important; }
html[data-theme="dark"] .dark\:text-gray-400 { color: #9ca3af !important; }
html[data-theme="dark"] .dark\:text-gray-500 { color: #6b7280 !important; }
html[data-theme="dark"] .dark\:text-gray-550 { color: #596270 !important; }
html[data-theme="dark"] .dark\:text-gray-600 { color: #4b5563 !important; }
html[data-theme="dark"] .dark\:text-green-300 { color: #86efac !important; }
html[data-theme="dark"] .dark\:text-green-400 { color: #4ade80 !important; }
html[data-theme="dark"] .dark\:text-green-450 { color: #3dd68c !important; }
html[data-theme="dark"] .dark\:group-hover\:text-green-400 .group:hover { color: #4ade80 !important; }
html[data-theme="dark"] .group:hover .dark\:group-hover\:text-green-400 { color: #4ade80 !important; }

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .sm\:items-center { align-items: center !important; }
  .sm\:justify-between { justify-content: space-between !important; }
  .sm\:text-base { font-size: 1rem !important; }
  .sm\:text-sm { font-size: 0.875rem !important; }
  .sm\:text-xl { font-size: 1.25rem !important; }
  .sm\:text-4xl { font-size: 2.25rem !important; }
  .sm\:text-\[10px\] { font-size: 10px !important; }
  .sm\:w-\[220px\] { width: 220px !important; }
}
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row !important; }
  .md\:aspect-video { aspect-ratio: 16/9 !important; }
  .md\:text-lg { font-size: 1.125rem !important; }
  .md\:text-2xl { font-size: 1.5rem !important; }
  .md\:text-\[11px\] { font-size: 11px !important; }
  .md\:w-44 { width: 11rem !important; }
}

/* ---- Animate In ---- */
.animate-in { animation: fadeInScale 0.2s ease both; }
.fade-in { animation-name: fadeIn; }
.zoom-in-95 { --tw-enter-scale: 0.95; }
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(var(--tw-enter-scale, 1)); }
  to   { opacity: 1; transform: scale(1); }
}
