/* Custom styles for Diana Deli European Store */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #73B896;
}

/* Selection color */
::selection {
    background-color: #A8D4BE;
    color: #0F1C2E;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #73B896;
    outline-offset: 2px;
}

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

@keyframes pulse-soft {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

/* Apply animations */
.floating {
    animation: float 3s ease-in-out infinite;
}

.pulse-bg {
    animation: pulse-soft 4s ease-in-out infinite;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Form input focus effects */
input:focus, textarea:focus, select:focus {
    transform: translateY(-1px);
}

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

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

/* Reduced motion preference */
@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, #back-to-top, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-mint-50 {
        background-color: #fff;
    }
    
    .text-midnight-600 {
        color: #1A2F45;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .min-h-screen {
        min-height: auto;
        padding: 2rem 0;
    }
}
