/* Custom styles for LibertyX Bitcoin ATM */

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

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

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

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

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

/* Selection color */
::selection {
    background: #D1442A;
    color: #FAF8F5;
}

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

/* Prevent flash of unstyled content */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* Print styles */
@media print {
    nav, .mobile-menu-btn, #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #2C2C2C;
        background: white;
    }
    
    .bg-terracotta-600 {
        background: #D1442A !important;
    }
}

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

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

/* Hero image hover effect */
.hero-image {
    transition: transform 0.6s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Card hover effects */
.group:hover .group-hover\\:translate-x-1 {
    transform: translateX(4px);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D1442A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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