/* Custom CSS Variables */
:root {
    --sage-50: #f0f4f0;
    --sage-100: #e1e8e1;
    --sage-200: #c3d1c3;
    --sage-300: #a5baa5;
    --sage-400: #87a387;
    --sage-500: #698c69;
    --sage-600: #547054;
    --sage-700: #3f543f;
    --sage-800: #2a382a;
    --sage-900: #151c15;
    
    --cream-50: #fefcf8;
    --cream-100: #fdf9f1;
    --cream-200: #fbf3e3;
    --cream-300: #f9edc5;
    --cream-400: #f7e7a7;
    --cream-500: #f5e189;
    --cream-600: #c4b46b;
    --cream-700: #93874d;
    --cream-800: #625a2f;
    --cream-900: #312d17;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--sage-800);
    background: linear-gradient(135deg, var(--sage-50) 0%, var(--cream-50) 100%);
    min-height: 100vh;
}

/* Typography */
.font-serif {
    font-family: 'Playfair Display', serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Color Classes */
.bg-sage-50 { background-color: var(--sage-50); }
.bg-sage-100 { background-color: var(--sage-100); }
.bg-sage-200 { background-color: var(--sage-200); }
.bg-sage-300 { background-color: var(--sage-300); }
.bg-sage-400 { background-color: var(--sage-400); }
.bg-sage-500 { background-color: var(--sage-500); }
.bg-sage-600 { background-color: var(--sage-600); }
.bg-sage-700 { background-color: var(--sage-700); }
.bg-sage-800 { background-color: var(--sage-800); }
.bg-sage-900 { background-color: var(--sage-900); }

.text-sage-50 { color: var(--sage-50); }
.text-sage-100 { color: var(--sage-100); }
.text-sage-200 { color: var(--sage-200); }
.text-sage-300 { color: var(--sage-300); }
.text-sage-400 { color: var(--sage-400); }
.text-sage-500 { color: var(--sage-500); }
.text-sage-600 { color: var(--sage-600); }
.text-sage-700 { color: var(--sage-700); }
.text-sage-800 { color: var(--sage-800); }
.text-sage-900 { color: var(--sage-900); }

.border-sage-100 { border-color: var(--sage-100); }
.border-sage-200 { border-color: var(--sage-200); }
.border-sage-300 { border-color: var(--sage-300); }

.bg-cream-50 { background-color: var(--cream-50); }
.bg-cream-100 { background-color: var(--cream-100); }
.bg-cream-200 { background-color: var(--cream-200); }
.bg-cream-300 { background-color: var(--cream-300); }

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--sage-500) 0%, var(--sage-600) 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(105, 140, 105, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-700) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(105, 140, 105, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--sage-700);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--sage-200);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--sage-50);
    border-color: var(--sage-300);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--sage-700);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--sage-300);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--sage-50);
    border-color: var(--sage-400);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--sage-700);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-white:hover {
    background: var(--sage-50);
    transform: translateY(-1px);
}

.btn-white-disabled {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-white-disabled:hover {
    background: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    opacity: 1;
}

/* Navigation */
.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

/* Form Elements */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--sage-200);
    border-radius: 0.5rem;
    background: white;
    color: var(--sage-800);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--sage-500);
    box-shadow: 0 0 0 3px rgba(105, 140, 105, 0.1);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: #f0f9f0;
    border-color: #22c55e;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

/* Recipe Cards - Simplified */
.recipe-card {
    display: block;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.recipe-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recipe-image {
    width: 100%;
    height: 200px;
    background: #f0f4f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 15px;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-placeholder-icon {
    font-size: 48px;
    color: #ccc;
}

.recipe-content {
    padding: 0;
}

.recipe-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.recipe-time,
.recipe-servings {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recipe-difficulty {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.recipe-difficulty-easy {
    background: #e8f9ee;
    color: #155e3b;
}

.recipe-difficulty-medium {
    background: #fef3d4;
    color: #8a4a0b;
}

.recipe-difficulty-hard {
    background: #ffe6e6;
    color: #912020;
}

.recipe-title {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0;
    color: #333;
}

.recipe-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.recipe-collection {
    margin-top: 10px;
}

.recipe-collection-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f4f0;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.recipe-collection-badge:hover {
    background: #e0e8e0;
}




/* Recipe tradition badge (legacy - kept for backward compatibility) */
.recipe-tradition {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-tradition-badge {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--sage-100) 0%, var(--cream-100) 100%);
    color: var(--sage-700);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--sage-200);
    transition: all 0.2s ease;
}

.recipe-tradition-badge:hover {
    background: linear-gradient(135deg, var(--sage-200) 0%, var(--cream-200) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Small Recipe Cards */
.recipe-card-sm {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--sage-100);
    text-decoration: none;
    color: inherit;
    display: block;
}

.recipe-card-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.recipe-image-sm {
    height: 8rem;
    overflow: hidden;
}

.recipe-image-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card-sm:hover .recipe-image-sm img {
    transform: scale(1.05);
}

.recipe-content-sm {
    padding: 1rem;
}

.recipe-meta-sm {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.recipe-time-sm,
.recipe-servings-sm {
    display: flex;
    align-items: center;
    color: var(--sage-600);
    font-size: 0.75rem;
}

.recipe-difficulty-sm {
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.recipe-difficulty-sm.recipe-difficulty-easy {
    background: #dcfce7;
    color: #166534;
}

.recipe-difficulty-sm.recipe-difficulty-medium {
    background: #fef3c7;
    color: #92400e;
}

.recipe-difficulty-sm.recipe-difficulty-hard {
    background: #fee2e2;
    color: #991b1b;
}

.recipe-title-sm {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sage-800);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.recipe-title-sm a {
    color: inherit;
    text-decoration: none;
}

.recipe-title-sm a:hover {
    color: var(--sage-600);
}

.recipe-description-sm {
    color: var(--sage-600);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--sage-100);
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sage-800);
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--sage-600);
    font-size: 0.875rem;
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Backdrop blur support */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Modern gradient backgrounds */
.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-sage-50 {
    --tw-gradient-from: var(--sage-50);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240, 244, 240, 0));
}

.to-cream-50 {
    --tw-gradient-to: var(--cream-50);
}

.from-sage-500 {
    --tw-gradient-from: var(--sage-500);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(105, 140, 105, 0));
}

.to-sage-600 {
    --tw-gradient-to: var(--sage-600);
}

.from-sage-600 {
    --tw-gradient-from: var(--sage-600);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(84, 112, 84, 0));
}

.to-sage-700 {
    --tw-gradient-to: var(--sage-700);
}

.to-sage-800 {
    --tw-gradient-to: var(--sage-800);
}

.via-sage-600 {
    --tw-gradient-stops: var(--tw-gradient-from), var(--sage-600), var(--tw-gradient-to, rgba(84, 112, 84, 0));
}

/* Enhanced button styles */
.btn-white {
    background: white;
    color: var(--sage-700);
    border: 2px solid white;
}

.btn-white:hover {
    background: var(--sage-50);
    color: var(--sage-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.3);
}

/* Enhanced recipe difficulty styles */
.recipe-difficulty-easy {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 1px solid #86efac;
}

.recipe-difficulty-medium {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.recipe-difficulty-hard {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #f87171;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recipe-meta {
        gap: 0.75rem;
    }
    
    .recipe-meta-sm {
        gap: 0.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 3rem;
        height: 3rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--sage-200);
    border-radius: 50%;
    border-top-color: var(--sage-600);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

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

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.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; }

.m-4 { margin: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l-4 { border-left-width: 4px; }

.sticky { position: sticky; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.top-0 { top: 0; }
.top-10 { top: 2.5rem; }
.top-24 { top: 6rem; }
.right-0 { right: 0; }
.right-20 { right: 5rem; }
.left-5 { left: 1.25rem; }
.left-10 { left: 2.5rem; }
.bottom-20 { bottom: 5rem; }

.z-50 { z-index: 50; }

.grid {
    display: grid;
}
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.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)); }

.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }

/* Spacing utilities */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* Text utilities */
.text-base { font-size: 1rem; line-height: 1.5rem; }
.font-medium { font-weight: 500; }

/* Border utilities */
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

/* Padding utilities */
.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* Hover utilities */
.hover\:bg-sage-50:hover { background-color: #f8f9f8; }
.hover\:text-sage-900:hover { color: #2d3e2d; }

/* Responsive display utilities */
@media (min-width: 768px) {
    .md\:hidden { display: none !important; }
    .md\:block { display: block !important; }
    .md\:flex { display: flex !important; }
}

@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:block { display: block; }
}

@media (min-width: 768px) {
    .md\:block { display: block; }
    .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\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

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

/* Additional utility classes for modern design */
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.text-white { color: white; }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }

.bg-white { background-color: white; }
.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-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-700 { background-color: #374151; }

.text-gray-700 { color: #374151; }
.text-gray-500 { color: #6b7280; }
.text-red-500 { color: #ef4444; }
.text-red-700 { color: #b91c1c; }
.text-yellow-500 { color: #eab308; }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }

.border-white { border-color: white; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.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-6xl { font-size: 3.75rem; line-height: 1; }

.opacity-70 { opacity: 0.7; }
.opacity-95 { opacity: 0.95; }

.font-medium { font-weight: 500; }

.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }

.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-56 { width: 14rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }

.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-white\/30:hover { background-color: rgba(255, 255, 255, 0.3); }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:text-white\/80:hover { color: rgba(255, 255, 255, 0.8); }
.hover\:text-red-700:hover { color: #b91c1c; }

.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.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-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-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }

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

.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:scale-125 { transform: scale(1.25); }
.group:hover .group-hover\:shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.-translate-x-1\/2 { --tw-translate-x: -50%; }

.bottom-8 { bottom: 2rem; }
.left-1\/2 { left: 50%; }

.italic { font-style: italic; }
.capitalize { text-transform: capitalize; }
.whitespace-nowrap { white-space: nowrap; }

.justify-center { justify-content: center; }
.w-full { width: 100%; }

/* Responsive text sizes */
@media (min-width: 768px) {
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* Recipe detail page specific styles */
.max-w-5xl { max-width: 64rem; }

/* Ensure sidebar doesn't overlap */
@media (min-width: 1024px) {
    .recipe-sidebar {
        position: relative;
        top: 0;
    }
}

/* Better spacing for recipe content */
.recipe-content-section {
    margin-bottom: 2rem;
}

.recipe-content-section:last-child {
    margin-bottom: 0;
}

/* Google Sign-in Button Styles */
.google-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--sage-200);
    border-radius: 0.5rem;
    background: white;
    color: var(--sage-700);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.google-signin-btn:hover {
    background: var(--sage-50);
    border-color: var(--sage-300);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.google-signin-btn svg {
    margin-right: 0.75rem;
}

/* Navigation sign-in button */
.nav-signin-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 2px solid white;
    border-radius: 0.5rem;
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
    max-width: 120px;
    justify-content: center;
}

.nav-signin-btn:hover {
    background: white !important;
    color: #3f543f !important;
    border-color: white !important;
    transform: translateY(-1px);
}

.nav-signin-btn svg {
    margin-right: 0.25rem;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.nav-signin-btn span {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Social share icons */
.social-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-share-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.1);
    color: white;
}

.social-share-icon i {
    font-size: 0.875rem;
}

.social-share-icon .x-icon {
    font-size: 1rem;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Additional utility classes */
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.gap-2 { gap: 0.5rem; }
.min-w-0 { min-width: 0; }
.resize-none { resize: none; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leading-relaxed { line-height: 1.625; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-400 { background-color: #fbbf24; }
.text-yellow-400 { color: #fbbf24; }
.border-yellow-200 { border-color: #fef08a; }
.text-gray-300 { color: #d1d5db; }
.inline-flex { display: inline-flex; }
.sm\:p-8 { padding: 2rem; }
@media (min-width: 640px) {
    .sm\:p-8 { padding: 2rem; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
    .sm\:justify-between { justify-content: space-between; }
}
.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px;
}
.focus\:ring-sage-500:focus {
    --tw-ring-color: #698c69;
}
.focus\:border-transparent:focus {
    border-color: transparent;
}

/* Serving adjuster */
.justify-between {
    justify-content: space-between;
}
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.min-w-\[2rem\] { min-width: 2rem; }
.text-center { text-align: center; }

/* Sign-up wall styles */
#signup-wall {
    pointer-events: auto;
}
.fixed {
    position: fixed;
}
.overflow-hidden {
    overflow: hidden;
}
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.from-transparent { --tw-gradient-from: transparent; }
.via-white\/80 { --tw-gradient-via: rgba(255, 255, 255, 0.8); }
.to-white { --tw-gradient-to: #ffffff; }
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to));
}
.h-32 { height: 8rem; }
.-mt-32 { margin-top: -8rem; }
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
@media (min-width: 640px) {
    .sm\:mx-8 { margin-left: 2rem; margin-right: 2rem; }
}
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-sm { max-width: 24rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.mr-3 { margin-right: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.space-x-4 > * + * { margin-left: 1rem; }
.justify-center { justify-content: center; }
.mr-2 { margin-right: 0.5rem; }
