/*
   Tailwind-Lite for Porridge.de
   Self-hosted utility CSS — replaces Tailwind CDN (~300KB) with only the classes used (~14KB).
   Porridge-specific color tokens added alongside generic utilities.
*/

/* =========================================
   1. LAYOUT & DISPLAY
   ========================================= */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:block { display: block; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:my-8 { margin-top: 2rem; margin-bottom: 2rem; }
    .sm\:max-w-xl { max-width: 36rem; }
    .sm\:w-full { width: 100%; }
    .sm\:p-14 { padding: 3.5rem; }
    .sm\:align-middle { vertical-align: middle; }
    .sm\:h-screen { height: 100vh; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:text-5xl { font-size: 3rem; }
    .md\:text-7xl { font-size: 4.5rem; }
    .md\:text-2xl { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================================
   2. SPACING
   ========================================= */
.mx-auto { margin-left: auto; margin-right: auto; }
.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-24 { margin-top: 6rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.p-1 { padding: 0.25rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.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-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pb-20 { padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pt-10 { padding-top: 2.5rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* =========================================
   3. SIZING
   ========================================= */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-48 { width: 12rem; }
.w-full { width: 100%; }

.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-48 { height: 12rem; }
.h-auto { height: auto; }

.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }

.min-h-\[85vh\] { min-height: 85vh; }
.min-h-screen { min-height: 100vh; }
.max-h-\[500px\] { max-height: 500px; }

.aspect-square { aspect-ratio: 1 / 1; }

/* =========================================
   4. TYPOGRAPHY
   ========================================= */
.text-\[10px\] { font-size: 10px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-sans { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; }
.font-serif { font-family: 'Playfair Display', Georgia, serif; }

.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }

.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-\[0\] { line-height: 0; }

.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.list-none { list-style-type: none; }
.list-disc { list-style-type: disc; }

/* =========================================
   5. COLOR — Text
   ========================================= */
.text-white { color: #ffffff; }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-black { color: #000000; }

.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }

.text-slate-500 { color: #64748b; }

/* Porridge brand colors */
.text-porridgeOat { color: #D4A373; }
.text-porridgeBerry { color: #BC4749; }
.text-porridgeCream { color: #FAEDCD; }
.text-porridgeText { color: #4F3B2B; }
.text-\[\#FEFAE0\] { color: #FEFAE0; }
.text-\[\#606C38\] { color: #606C38; }
.text-\[\#DDA15E\] { color: #DDA15E; }
.text-\[\#D4A373\] { color: #D4A373; }
.text-\[\#BC4749\] { color: #BC4749; }

/* Opacity variants */
.text-porridgeText\/60 { color: rgba(79, 59, 43, 0.6); }
.text-porridgeText\/40 { color: rgba(79, 59, 43, 0.4); }

/* =========================================
   6. COLOR — Background
   ========================================= */
.bg-white { background-color: #ffffff; }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/30 { background-color: rgba(255, 255, 255, 0.3); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-black { background-color: #000000; }

.bg-gray-50 { background-color: #f9fafb; }

/* Porridge brand backgrounds */
.bg-porridgeOat { background-color: #D4A373; }
.bg-porridgeBerry { background-color: #BC4749; }
.bg-porridgeCream { background-color: #FAEDCD; }
.bg-\[\#FAEDCD\] { background-color: #FAEDCD; }
.bg-\[\#FEFAE0\] { background-color: #FEFAE0; }
.bg-\[\#D4A373\] { background-color: #D4A373; }
.bg-\[\#BC4749\] { background-color: #BC4749; }
.bg-\[\#606C38\] { background-color: #606C38; }
.bg-\[\#DDA15E\] { background-color: #DDA15E; }
.bg-\[\#CCD5AE\]\/40 { background-color: rgba(204, 213, 174, 0.4); }
.bg-\[\#D4A373\]\/20 { background-color: rgba(212, 163, 115, 0.2); }
.bg-\[\#BC4749\]\/20 { background-color: rgba(188, 71, 73, 0.2); }
.bg-\[\#E9EDC9\] { background-color: #E9EDC9; }

/* Gradient */
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-\[\#D4A373\] { --tw-gradient-from: #D4A373; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(212,163,115,0)); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, rgba(0,0,0,0)); }
.to-black\/20 { --tw-gradient-to: rgba(0, 0, 0, 0.2); }

/* =========================================
   7. BORDERS
   ========================================= */
.border { border-width: 1px; border-style: solid; border-color: #e8dcc8; }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: #e8dcc8; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #e8dcc8; }
.border-y { border-top: 1px solid #e8dcc8; border-bottom: 1px solid #e8dcc8; }
.border-dashed { border-style: dashed; }

.border-white { border-color: #ffffff; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/40 { border-color: rgba(255, 255, 255, 0.4); }
.border-\[\#D4A373\]\/20 { border-color: rgba(212, 163, 115, 0.2); }
.border-\[\#D4A373\]\/10 { border-color: rgba(212, 163, 115, 0.1); }
.border-\[\#CCD5AE\] { border-color: #CCD5AE; }
.border-porridgeOat\/10 { border-color: rgba(212, 163, 115, 0.1); }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-\[2\.5rem\] { border-radius: 2.5rem; }
.rounded-\[3rem\] { border-radius: 3rem; }

/* =========================================
   8. SHADOWS & EFFECTS
   ========================================= */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.opacity-40 { opacity: 0.4; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

.backdrop-blur-sm { backdrop-filter: blur(4px); }
.bg-opacity-40 { background-color: rgba(0,0,0,0.4); }

/* =========================================
   9. POSITIONING
   ========================================= */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.-top-4 { top: -1rem; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.left-6 { left: 1.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mr-6 { margin-right: 1.5rem; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[100\] { z-index: 100; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.object-cover { object-fit: cover; }

/* =========================================
   10. TRANSFORMS
   ========================================= */
.-rotate-6 { transform: rotate(-6deg); }

/* =========================================
   11. TRANSITIONS & ANIMATIONS
   ========================================= */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.fade-enter { opacity: 0; transform: translateY(20px); transition: all 0.8s ease-out; }
.fade-visible { opacity: 1; transform: translateY(0); }

/* =========================================
   12. HOVER STATES
   ========================================= */
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-\[\#FEFAE0\]:hover { color: #FEFAE0; }
.hover\:text-porridgeBerry:hover { color: #BC4749; }
.hover\:text-porridgeOat:hover { color: #D4A373; }
.hover\:text-gray-600:hover { color: #4b5563; }

.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }
.hover\:bg-white\/20:hover { background-color: rgba(255,255,255,0.2); }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }
.hover\:bg-\[\#FEFAE0\]\/30:hover { background-color: rgba(254,250,224,0.3); }
.hover\:bg-\[\#B08968\]:hover { background-color: #B08968; }

.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.hover\:underline:hover { text-decoration: underline; }

.group:hover .group-hover\:text-white { color: #ffffff; }
.group:hover .group-hover\:text-porridgeBerry { color: #BC4749; }

/* =========================================
   13. FOCUS & DISABLED
   ========================================= */
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(212, 163, 115, 0.4); }
.focus\:ring-porridgeOat:focus { --tw-ring-color: #D4A373; }
.focus\:border-transparent:focus { border-color: transparent; }
.outline-none { outline: none; }
.disabled\:opacity-50:disabled { opacity: 0.5; }

/* =========================================
   14. MISC
   ========================================= */
.cursor-pointer { cursor: pointer; }
.scroll-smooth { scroll-behavior: smooth; }
.group { position: relative; /* enables group-hover on children */ }
.leading-\[0\] { line-height: 0; }
.w-\[150\%\] { width: 150%; }
.h-\[60px\] { height: 60px; }

[x-cloak] { display: none !important; }

/* =========================================
   15. MISSING LAYOUT & SIZING
   ========================================= */
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.w-12 { width: 3rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }

.text-\[11px\] { font-size: 11px; line-height: 1.4; }
.text-\[13px\] { font-size: 13px; }

.flex-shrink-0 { flex-shrink: 0; }
.grow { flex-grow: 1; }

.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }

.bg-gray-100 { background-color: #f3f4f6; }

/* =========================================
   16. COLOR COMPAT — Porridge-remapped
   (Old pages used Tailwind blue/red/orange.
    Remapped to warm porridge tones so no cold
    colors bleed through.) 
   ========================================= */

/* Porridge Oat tones — replaces "blue" (warm, calm) */
.bg-blue-50    { background-color: #fdf6ee; }
.bg-blue-100   { background-color: #f5e6d0; }
.bg-blue-100\/30 { background-color: rgba(245,230,208,0.3); }
.bg-blue-200   { background-color: #ebd5b5; }
.border-blue-100  { border-color: #eedad0; }
.border-blue-200  { border-color: #d4c4aa; }
.text-blue-800  { color: #6b4226; }
.text-blue-900  { color: #4F3B2B; }
.text-blue-600  { color: #9C6B44; }

/* Porridge Berry tones — replaces "red" */
.bg-red-50    { background-color: #fdf0f0; }
.bg-red-100   { background-color: #f9dddd; }
.border-red-100  { border-color: #f2c4c4; }
.text-red-800  { color: #7d2c2e; }
.text-red-600  { color: #BC4749; }

/* Porridge DDA15E tones — replaces "orange" */
.bg-orange-50   { background-color: #fdf3e7; }
.bg-orange-100  { background-color: #f9e4c5; }
.border-orange-100 { border-color: #f0d0a0; }
.text-orange-800 { color: #7a4b1a; }
.text-orange-600 { color: #D4A373; }

/* Herb green tones — replaces "green" */
.bg-green-50  { background-color: #f2f5ee; }
.bg-green-100 { background-color: #e2ebd6; }
.text-green-600 { color: #606C38; }
.text-green-800 { color: #3d4722; }

/* porridgeBerry opacity variants */
.bg-porridgeBerry\/10 { background-color: rgba(188, 71, 73, 0.10); }
.bg-porridgeOat\/10   { background-color: rgba(212, 163, 115, 0.10); }
.bg-porridgeOat\/20   { background-color: rgba(212, 163, 115, 0.20); }

/* mt-0.5 for aligned bullet points */
.mt-0\.5 { margin-top: 0.125rem; }

/* Further missing utilities from Toppings/Overnight pages */
.origin-top { transform-origin: top; }
.scale-\[1\.01\] { transform: scale(1.01); }
.hover\:scale-\[1\.01\]:hover { transform: scale(1.01); }
.leading-none { line-height: 1; }

/* Product Box missing utilities */
.bg-porridgeCream\/60 { background-color: rgba(250, 237, 205, 0.6); }
.hover\:bg-porridgeCream:hover { background-color: #FAEDCD; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.no-underline { text-decoration: none; }
.tracking-normal { letter-spacing: 0; }
.tracking-wider { letter-spacing: 0.05em; }
.m-0 { margin: 0; }
