/* Custom Styles for Pete's Pizza */

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

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

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Floating Animation */
.float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
.pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ef5c2b;
}

/* Selection Color */
::selection {
    background-color: #ff6b35;
    color: white;
}

/* Image Hover Effects */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Button Focus States */
button:focus,
a:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Input Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    nav,
    button,
    .no-print {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .bg-coral-500 {
        background-color: ButtonText;
    }
    
    .text-coral-500 {
        color: ButtonText;
    }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .rounded-4xl {
        border-radius: 1.5rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    button:hover,
    a:hover {
        transform: none;
    }
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus Visible for Keyboard Navigation */
:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Reduced Motion for Animations */
@media (prefers-reduced-motion: reduce) {
    .animate-bounce {
        animation: none;
    }
}
