/* Custom styles for LibertyX Bitcoin ATM */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    }
    
::-webkit-scrollbar-track {
    background: #102a43;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d99a1e, #c78214);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e4b03c, #d99a1e);
}

/* Selection color */
::selection {
    background-color: rgba(217, 154, 30, 0.3);
    color: #f0f4f8;
}

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

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent layout shift */
img {
    object-fit: cover;
}

/* Print styles */
@media print {
    .hero-gradient {
        background: #102a43 !important;
    }
    
    .gold-shimmer {
        background: none !important;
        -webkit-text-fill-color: #d99a1e !important;
        color: #d99a1e !important;
    }
}

/* Reduced motion preference */
@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;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .service-card {
        border: 2px solid ButtonText;
    }
    
    .btn-primary {
        border: 2px solid ButtonText;
    }
}

/* Additional utility classes */
.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.glass-effect {
    background: rgba(16, 42, 67, 0.7);
    backdrop-filter: blur(10px);
}

/* Loading state for buttons */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure proper stacking */
.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Container padding for mobile */
@media (max-width: 640px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Fix for Safari scroll behavior */
@supports (-webkit-touch-callout: none) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* Ensure touch targets are large enough on mobile */
@media (hover: none) and (pointer: coarse) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    input, textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Performance optimizations */
.service-card,
.card-icon,
.btn-primary {
    will-change: transform;
}

/* Subtle hover states for links */
a:not(.btn-primary):hover {
    color: #f5e0a0;
}
