@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.page-header {
    background: linear-gradient(135deg, #fde8e8 0%, #fef3c7 50%, #ffedd5 100%);
}

.scroll-snap {
    scrollbar-width: thin;
    scrollbar-color: #f97316 transparent;
}

.scroll-snap::-webkit-scrollbar {
    height: 6px;
}

.scroll-snap::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 99px;
}

.scroll-snap::-webkit-scrollbar-track {
    background: transparent;
}

.recipe-card-shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card-shadow:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
}

.category-card {
    transition: transform 0.3s ease;
}

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

/* Tip box styling */
.tip-box {
    border-left: 4px solid #f97316;
}

/* Jump to sections */
.anchor-link {
    scroll-margin-top: 90px;
}

/* Newsletter strip */
.newsletter-strip {
    background: linear-gradient(120deg, #f97316 0%, #ea580c 100%);
}

/* Mobile menu */
#mobile-menu {
    transition: max-height 0.4s ease;
    overflow: hidden;
    max-height: 0;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Search overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 60;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}

.search-overlay.open {
    display: flex;
}

/* Print styles for recipes */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
}

/* Recipe image wrapper for consistent aspect ratio */
.recipe-img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

/* Fade in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Rating stars */
.stars {
    color: #f59e0b;
    letter-spacing: 2px;
}

/* Author box */
.author-avatar {
    border-radius: 50%;
    object-fit: cover;
}