/* Custom styles for Midnight Bakery */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3a563d;
}

/* Selection color */
::selection {
    background-color: #4f7352;
    color: white;
}

/* Navbar background transition */
.nav-scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
.mobile-link {
    transition: all 0.3s ease;
}

.mobile-link:hover {
    color: #4f7352;
    transform: translateX(10px);
}

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

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

/* Focus styles for accessibility */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 115, 82, 0.2);
}

/* Form input styling */
input, textarea, select {
    font-family: 'Space Grotesk', sans-serif;
}

/* Gallery grid auto-fill */
.grid {
    grid-auto-rows: minmax(150px, auto);
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

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

/* 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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-forest-50 {
        background-color: #e8f5e9;
    }
    
    .text-forest-700 {
        color: #1b5e20;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        min-height: auto;
        padding: 80px 0;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-cols-2 {
        gap: 1.5rem;
    }
}
