/* Custom styles for Daily Bread Bakery */

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

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

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

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

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

/* Selection color */
::selection {
    background: #fbbf24;
    color: #3d051a;
}

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

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

/* Button focus states */
button:focus, a:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

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

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

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 251, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Card hover effects */
.bg-white\/5 {
    transition: all 0.3s ease;
}

.bg-white\/5:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

/* Gallery grid responsive */
@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Ensure all text is readable */
.text-white\/70,
.text-white\/80,
.text-white\/90 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Form styles for future use */
input, textarea {
    border-radius: 0.75rem;
    border: 2px solid #fce7f3;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #be185d;
    outline: none;
}

/* Loading state for buttons */
button:active, a:active {
    transform: scale(0.98);
}
