/* ==========================================================================
   CHEF'S MISSION DESIGN SYSTEM & STATIC UTILITY STYLESHEET
   Self-hosted replacement for Tailwind CDN + Comic Mission custom styles
   ========================================================================== */

/* 1. CSS RESET / PREFLIGHT */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #E2E8F0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0;
    line-height: inherit;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #FFFDF7;
    background-image: radial-gradient(#E2E8F0 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: #1E293B;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

p, blockquote, dl, dd, hr, figure, pre {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: inherit;
}

b, strong {
    font-weight: bolder;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    background-color: transparent;
    background-image: none;
}

button, [role="button"] {
    cursor: pointer;
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* 2. CHEF'S MISSION COMIC THEME & COMPONENT CLASSES */
:root {
    --comic-shadow: 4px 4px 0px #1E293B;
    --comic-shadow-sm: 2px 2px 0px #1E293B;
    --comic-shadow-lg: 6px 6px 0px #1E293B;
}

h1, h2, h3, .font-display {
    font-family: 'Fredoka', sans-serif;
}

.font-sans {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.comic-card {
    border: 3px solid #1E293B;
    box-shadow: var(--comic-shadow);
    transition: all 0.15s ease;
}

.comic-card-lg {
    border: 3px solid #1E293B;
    box-shadow: var(--comic-shadow-lg);
}

.comic-btn {
    border: 3px solid #1E293B;
    box-shadow: var(--comic-shadow-sm);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

.comic-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: var(--comic-shadow);
}

.comic-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #1E293B;
}

/* Custom Checkbox Styling */
.check-card.checked {
    background-color: #DCFCE7 !important;
    border-color: #166534 !important;
    opacity: 0.85;
}

.check-card.checked .check-box {
    background-color: #22C55E;
    border-color: #166534;
}

.check-card.checked .check-icon {
    opacity: 1;
    transform: scale(1);
}

.check-card.checked .item-title {
    text-decoration: line-through;
    color: #15803D;
}

/* Animations */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes bubblePop {
    0% { transform: scale(0.3); opacity: 0.2; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

@keyframes flipPancake {
    0% { transform: translateY(0) rotate(0deg) scaleY(1); }
    40% { transform: translateY(-55px) rotate(90deg) scaleY(1.1); }
    70% { transform: translateY(-30px) rotate(180deg) scaleY(1); }
    100% { transform: translateY(0) rotate(180deg) scaleY(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-float {
    animation: floatSlow 3s ease-in-out infinite;
}

.bubble-anim {
    animation: bubblePop 1.6s infinite ease-in-out;
    transform-box: fill-box;
    transform-origin: center;
}

.flipping {
    animation: flipPancake 0.7s ease-in-out forwards;
    transform-box: fill-box;
    transform-origin: center;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Sticky Progress Bar Blur */
.sticky-bar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 253, 247, 0.92);
}

.selection\:bg-amber-300 *::selection,
.selection\:bg-amber-300::selection {
    background-color: #FCD34D;
}

/* 3. LAYOUT & DISPLAY UTILITIES */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0px; }
.-top-3 { top: -0.75rem; }
.-right-3 { right: -0.75rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; -webkit-user-select: none; }

/* 4. FLEXBOX & GRID UTILITIES */
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

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

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

/* Space Between Children */
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }

/* 5. SIZING (WIDTH & HEIGHT) */
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-5xl { max-width: 64rem; }

.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-28 { width: 7rem; }
.h-28 { height: 7rem; }
.w-56 { width: 14rem; }
.w-64 { width: 16rem; }
.h-64 { height: 16rem; }
.h-3\.5 { height: 0.875rem; }
.h-5 { height: 1.25rem; }
.h-36 { height: 9rem; }
.h-44 { height: 11rem; }

/* 6. SPACING (PADDING & MARGIN) */
.p-0\.5 { padding: 0.125rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.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-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.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-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-20 { padding-bottom: 5rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }

/* 7. TYPOGRAPHY */
.text-\[11px\] { font-size: 11px; }
.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; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.uppercase { text-transform: uppercase; }
.underline { text-decoration-line: underline; }
.text-center { text-align: center; }
.whitespace-nowrap { white-space: nowrap; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

/* 8. TEXT COLORS */
.text-white { color: #FFFFFF; }
.text-slate-200 { color: #E2E8F0; }
.text-slate-500 { color: #64748B; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1E293B; }
.text-slate-900 { color: #0F172A; }

.text-amber-300 { color: #FCD34D; }
.text-amber-600 { color: #D97706; }
.text-amber-700 { color: #B45309; }
.text-amber-900 { color: #78350F; }

.text-emerald-700 { color: #047857; }
.text-emerald-900 { color: #064E3B; }

.text-sky-700 { color: #0369A1; }

.text-indigo-700 { color: #4338CA; }
.text-indigo-900 { color: #312E81; }
.text-indigo-950 { color: #1E1B4B; }

.text-purple-900 { color: #581C87; }

.text-rose-600 { color: #E11D48; }
.text-rose-700 { color: #BE123C; }
.text-rose-800 { color: #9F1239; }
.text-rose-900 { color: #881337; }
.text-rose-950 { color: #4C0519; }

/* 9. BACKGROUNDS & GRADIENTS */
.bg-white { background-color: #FFFFFF; }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }

.bg-slate-50 { background-color: #F8FAFC; }
.bg-slate-100 { background-color: #F1F5F9; }
.bg-slate-200 { background-color: #E2E8F0; }
.bg-slate-800 { background-color: #1E293B; }
.bg-slate-900 { background-color: #0F172A; }

.bg-amber-50 { background-color: #FFFBEB; }
.bg-amber-100 { background-color: #FEF3C7; }
.bg-amber-200 { background-color: #FDE68A; }
.bg-amber-300 { background-color: #FCD34D; }
.bg-amber-400 { background-color: #FBBF24; }
.bg-amber-500 { background-color: #F59E0B; }

.bg-orange-50\/90 { background-color: rgba(255, 247, 237, 0.9); }

.bg-emerald-50 { background-color: #ECFDF5; }
.bg-emerald-100 { background-color: #D1FAE5; }
.bg-emerald-400 { background-color: #34D399; }
.bg-emerald-500 { background-color: #10B981; }

.bg-sky-50 { background-color: #F0F9FF; }
.bg-sky-50\/90 { background-color: rgba(240, 249, 255, 0.9); }
.bg-sky-100 { background-color: #E0F2FE; }
.bg-sky-300 { background-color: #7DD3FC; }
.bg-sky-400 { background-color: #38BDF8; }
.bg-sky-600 { background-color: #0284C7; }

.bg-indigo-50 { background-color: #EEF2FF; }
.bg-indigo-100 { background-color: #E0E7FF; }
.bg-indigo-600 { background-color: #4F46E5; }

.bg-purple-50 { background-color: #FAF5FF; }
.bg-purple-100 { background-color: #F3E8FF; }
.bg-purple-600 { background-color: #9333EA; }

.bg-rose-50 { background-color: #FFF1F2; }
.bg-rose-100 { background-color: #FFE4E6; }
.bg-rose-500 { background-color: #F43F5E; }
.bg-rose-600 { background-color: #E11D48; }

/* Gradients */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-amber-300 {
    --tw-gradient-from: #FCD34D;
    --tw-gradient-to: rgba(252, 211, 77, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-emerald-300 {
    --tw-gradient-from: #6EE7B7;
    --tw-gradient-to: rgba(110, 231, 183, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-amber-200 {
    --tw-gradient-to: rgba(253, 230, 138, 0);
    --tw-gradient-stops: var(--tw-gradient-from), #FDE68A, var(--tw-gradient-to);
}
.via-teal-200 {
    --tw-gradient-to: rgba(153, 246, 228, 0);
    --tw-gradient-stops: var(--tw-gradient-from), #99F6E4, var(--tw-gradient-to);
}
.to-orange-200 {
    --tw-gradient-to: #FED7AA;
}
.to-amber-200 {
    --tw-gradient-to: #FDE68A;
}

/* Hover Backgrounds */
.hover\:bg-amber-50:hover { background-color: #FFFBEB; }
.hover\:bg-amber-50\/50:hover { background-color: rgba(255, 251, 235, 0.5); }
.hover\:bg-amber-50\/60:hover { background-color: rgba(255, 251, 235, 0.6); }
.hover\:bg-amber-300:hover { background-color: #FCD34D; }
.hover\:bg-emerald-300:hover { background-color: #6EE7B7; }
.hover\:bg-rose-50:hover { background-color: #FFF1F2; }
.hover\:bg-slate-100:hover { background-color: #F1F5F9; }

/* 10. BORDERS & ROUNDED CORNERS */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-3 { border-width: 3px; }
.border-4 { border-width: 4px; }
.border-t-2 { border-top-width: 2px; }
.border-b-2 { border-bottom-width: 2px; }
.border-b-4 { border-bottom-width: 4px; }
.border-l-8 { border-left-width: 8px; }

.border-slate-200 { border-color: #E2E8F0; }
.border-slate-700 { border-color: #334155; }
.border-slate-800 { border-color: #1E293B; }
.border-slate-900 { border-color: #0F172A; }
.border-emerald-800 { border-color: #065F46; }
.border-rose-800 { border-color: #9F1239; }
.border-rose-900 { border-color: #881337; }
.border-l-amber-500 { border-left-color: #F59E0B; }

.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; }

/* 11. SHADOWS, TRANSFORMS, OPACITY & TRANSITIONS */
.shadow-\[2px_2px_0px_\#1E293B\] { box-shadow: 2px 2px 0px #1E293B; }
.shadow-\[3px_3px_0px_\#1E293B\] { box-shadow: 3px 3px 0px #1E293B; }
.shadow-\[6px_6px_0px_\#1E293B\] { box-shadow: 6px 6px 0px #1E293B; }

.opacity-0 { opacity: 0; }
.scale-50 { transform: scale(0.5); }
.rotate-6 { transform: rotate(6deg); }

.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, text-decoration-color, fill, stroke;
    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-300 {
    transition-duration: 300ms;
}

/* 12. RESPONSIVE BREAKPOINTS */
@media (min-width: 640px) {
    .sm\:inline { display: inline; }
    .sm\:inline-block { display: inline-block; }
    .sm\:flex-initial { flex: 0 1 auto; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm\:gap-3 { gap: 0.75rem; }
    .sm\:max-w-sm { max-width: 24rem; }
    .sm\:w-72 { width: 18rem; }
    .sm\:h-72 { height: 18rem; }
    .sm\:p-5 { padding: 1.25rem; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:p-8 { padding: 2rem; }
    .sm\:pt-10 { padding-top: 2.5rem; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 768px) {
    .md\:inline-block { display: inline-block; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:w-auto { width: auto; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .md\:col-span-4 { grid-column: span 4 / span 4; }
    .md\:col-span-5 { grid-column: span 5 / span 5; }
    .md\:col-span-7 { grid-column: span 7 / span 7; }
    .md\:col-span-8 { grid-column: span 8 / span 8; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\:inline-block { display: inline-block; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-6 { grid-column: span 6 / span 6; }
}
