/* Custom CSS for La Nonna di Pixel */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
    }
}

/* Custom classes */
.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-1500 {
    animation-delay: 1.5s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* Menu item hover effects */
.menu-item {
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.menu-item:hover {
    border-bottom-color: #ef4444;
    transform: translateX(10px);
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-primary:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Image hover effects */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 1rem;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fef2f2;
}

::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* Typography enhancements */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hero readability helpers */
.hero-scrim {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(254, 242, 242, 0.45) 100%);
}

.hero-panel {
    background: rgba(10, 10, 10, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    padding: 2.5rem 2.25rem;
}

.hero-title-text {
    color: var(--primary-600);
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}

.hero-subtitle-text {
    color: #fef2f2;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* Loading animation */
.loading-dots {
    display: inline-flex;
    align-items: center;
}

.loading-dots span {
    animation: loading 1.4s infinite ease-in-out both;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    height: 8px;
    margin: 0 2px;
    width: 8px;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(45deg, #ef4444, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.5rem !important;
    }

    .hero-panel {
        padding: 2rem 1.5rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* Palette primaire (equivalent config Tailwind custom) */
:root {
    --primary-50: #fef2f2;
    --primary-100: #fee2e2;
    --primary-200: #fecaca;
    --primary-300: #fca5a5;
    --primary-400: #f87171;
    --primary-500: #ef4444;
    --primary-600: #dc2626;
    --primary-700: #b91c1c;
    --primary-800: #991b1b;
    --primary-900: #7f1d1d;
}

/* Couleurs utilitaires primary-* */
.text-primary-50 { color: var(--primary-50); }
.text-primary-100 { color: var(--primary-100); }
.text-primary-200 { color: var(--primary-200); }
.text-primary-300 { color: var(--primary-300); }
.text-primary-400 { color: var(--primary-400); }
.text-primary-500 { color: var(--primary-500); }
.text-primary-600 { color: var(--primary-600); }
.text-primary-700 { color: var(--primary-700); }
.text-primary-800 { color: var(--primary-800); }
.text-primary-900 { color: var(--primary-900); }

.bg-primary-50 { background-color: var(--primary-50); }
.bg-primary-100 { background-color: var(--primary-100); }
.bg-primary-200 { background-color: var(--primary-200); }
.bg-primary-300 { background-color: var(--primary-300); }
.bg-primary-400 { background-color: var(--primary-400); }
.bg-primary-500 { background-color: var(--primary-500); }
.bg-primary-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-primary-600 { background-color: var(--primary-600); }
.bg-primary-700 { background-color: var(--primary-700); }
.bg-primary-800 { background-color: var(--primary-800); }
.bg-primary-900 { background-color: var(--primary-900); }

.border-primary-500 { border-color: var(--primary-500); }
.hover\:bg-primary-50:hover { background-color: var(--primary-50); }
.hover\:bg-primary-600:hover { background-color: var(--primary-600); }
.hover\:text-primary-700:hover { color: var(--primary-700); }
.focus\:ring-primary-500:focus { --tw-ring-color: var(--primary-500); }

.from-primary-50 {
    --tw-gradient-from: var(--primary-50);
    --tw-gradient-to: rgb(254 242 242 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-primary-500 {
    --tw-gradient-from: var(--primary-500);
    --tw-gradient-to: rgb(239 68 68 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-primary-50 { --tw-gradient-to: var(--primary-50); }
.to-primary-600 { --tw-gradient-to: var(--primary-600); }

/* Polices custom pour correspondre a l'ancien config Tailwind */
.font-sans { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif; }
.font-serif { font-family: 'Playfair Display', ui-serif, Georgia, serif; }
.font-cursive { font-family: 'Dancing Script', cursive; }

/* Animations custom pour les effets de sections */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-in-up {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slide-in {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes float-reverse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}
@keyframes showcase-float {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    20% { transform: translateY(-8px) rotate(1.2deg) scale(1.01); }
    40% { transform: translateY(6px) rotate(-1.4deg) scale(0.995); }
    60% { transform: translateY(-5px) rotate(0.8deg) scale(1.006); }
    80% { transform: translateY(4px) rotate(-1deg) scale(0.998); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 8px rgba(239, 68, 68, 0.35); }
    50% { text-shadow: 0 0 18px rgba(239, 68, 68, 0.55); }
}

.animate-fade-in-up { animation: fade-in-up 0.9s ease-out both; }
.animate-fade-in-up-slow { animation: fade-in-up 1.8s ease-out both; }
.animate-fade-in-up-slower { animation: fade-in-up 2.4s ease-out both; }
.animate-slide-in { animation: slide-in 0.9s ease-out both; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-reverse { animation: float-reverse 6s ease-in-out infinite; }
.animate-text-glow { animation: text-glow 2.4s ease-in-out infinite; }
.animate-text-glow-fade-up-slow { animation: fade-in-up 1.8s ease-out both, text-glow 2.4s ease-in-out infinite; }
.animate-hero-fade-in { animation: hero-fade-in-up 1.2s ease-out both; }
.animate-hero-fade-in-slow { animation: hero-fade-in-up 1.8s ease-out both; }
.animate-hero-fade-in-slower { animation: hero-fade-in-up 2.2s ease-out both; }
.animate-hero-text-glow-fade-up { animation: hero-fade-in-up 1.8s ease-out both, text-glow 2.4s ease-in-out infinite; }
.animation-delay-1000 { animation-delay: 1s; }

/* Showcase images (parallax-ish sway + rotation) */
.animate-showcase { animation: showcase-float 9s ease-in-out infinite; }
.animate-showcase-fast { animation-duration: 7s; }
.animate-showcase-reverse { animation-direction: alternate-reverse; }
.animate-delay-1 { animation-delay: 0.4s; }
.animate-delay-2 { animation-delay: 0.8s; }
.animate-delay-3 { animation-delay: 1.2s; }

/* Menu complet sections: reserve a top margin when scrolled into view */
.menu-section { scroll-margin-top: 120px; }

/* Palette primaire (equivalent config Tailwind custom) */
:root {
    --primary-50: #fef2f2;
    --primary-100: #fee2e2;
    --primary-200: #fecaca;
    --primary-300: #fca5a5;
    --primary-400: #f87171;
    --primary-500: #ef4444;
    --primary-600: #dc2626;
    --primary-700: #b91c1c;
    --primary-800: #991b1b;
    --primary-900: #7f1d1d;
}

.text-primary-300 { color: var(--primary-300); }
.text-primary-500 { color: var(--primary-500); }
.text-primary-600 { color: var(--primary-600); }
.text-primary-700 { color: var(--primary-700); }
.bg-primary-50 { background-color: var(--primary-50); }
.bg-primary-100 { background-color: var(--primary-100); }
.bg-primary-500 { background-color: var(--primary-500); }
.bg-primary-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-primary-600 { background-color: var(--primary-600); }
.border-primary-500 { border-color: var(--primary-500); }
.hover\:bg-primary-50:hover { background-color: var(--primary-50); }
.hover\:bg-primary-600:hover { background-color: var(--primary-600); }
.hover\:text-primary-700:hover { color: var(--primary-700); }
.focus\:ring-primary-500:focus { --tw-ring-color: var(--primary-500); }
.from-primary-50 {
    --tw-gradient-from: var(--primary-50);
    --tw-gradient-to: rgb(254 242 242 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-primary-500 {
    --tw-gradient-from: var(--primary-500);
    --tw-gradient-to: rgb(239 68 68 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-primary-50 { --tw-gradient-to: var(--primary-50); }
.to-primary-600 { --tw-gradient-to: var(--primary-600); }
