/* 
 * Mina's Coffee Shop - Custom Styles
 * Additional styles beyond Tailwind utility classes
 */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* 
 * Reveal animation classes
 * Used for scroll-triggered animations
 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 
 * Image hover zoom effect
 */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.6s ease;
}

.img-zoom-container:hover img {
    transform: scale(1.05);
}

/* 
 * Button hover glow effect
 */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.4);
}

/* 
 * Mobile menu transition
 */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* 
 * Focus styles for accessibility
 */
button:focus,
a:focus,
input:focus {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

/* 
 * Reduced motion preference
 */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .img-zoom-container img {
        transition: none;
    }
    
    .btn-primary::after {
        display: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 
 * Responsive adjustments
 */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .reveal {
        transition-delay: 0.1s;
    }
}
