/* Custom Styles for LibertyX Bitcoin ATM */

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

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f59e0b, #d97706);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #d97706, #b45309);
}

/* Focus Styles */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background-color: #fef3c7;
    color: #78350f;
}

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

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-gradient-to-br {
        background: #0f172a !important;
    }
    
    .text-gold-600 {
        color: #b45309 !important;
    }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .hero-section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    .hero-section {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Better Touch Targets on Mobile */
@media (max-width: 640px) {
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}

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

/* Success State */
.success {
    opacity: 1;
}

/* Error State */
.error {
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
