/* =============================================
   Recettes de maman J — Custom Styles
   ============================================= */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8864a;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero floating animation */
.hero-float {
    animation: heroFloat 6s ease-in-out infinite;
}
.hero-float-delay {
    animation: heroFloat 6s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Card hover shimmer effect */
.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}
.recipe-card:hover::before {
    left: 100%;
}

/* Page transition */
main {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus ring style */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Pulse animation for live indicator */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* Dark mode transition */
.dark {
    color-scheme: dark;
}

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
