/* Custom styles for My Hobby - Sports Cards & More */

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

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

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

::-webkit-scrollbar-thumb {
    background: #7D1C2A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9f1e38;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text utility */
.text-transparent {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #7D1C2A;
    outline-offset: 2px;
}

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

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

/* Hero card stack animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--rotation, 0deg)); }
}

@media (prefers-reduced-motion: no-preference) {
    .absolute.-top-8.-left-8 {
        animation: float 4s ease-in-out infinite;
        --rotation: -6deg;
    }
    
    .absolute.top-4.left-8 {
        animation: float 4s ease-in-out infinite;
        --rotation: 3deg;
        animation-delay: 0.5s;
    }
    
    .absolute.top-16.left-0 {
        animation: float 4s ease-in-out infinite;
        --rotation: -2deg;
        animation-delay: 1s;
    }
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Form input transitions */
input, textarea, select {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
