/* Custom styles that complement Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
    background: #d4c4ba;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Selection color */
::selection {
    background: rgba(185, 28, 28, 0.15);
    color: #6b1010;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #b91c1c;
    outline-offset: 2px;
}

/* Button active state */
.btn-primary:active {
    transform: scale(0.97);
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f5ede8 25%, #fdf0f0 50%, #f5ede8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    10% { background-position: 200% 0; }
    to { background-position: 200% 0; }
}

img[src] {
    animation: none;
    background: none;
}

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}
