/* Custom Styles & Animations for Scrap Metal Landing Page */

/* Prevent Horizontal Overflow & Smooth Scroll */
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Safe Area Padding for Mobile Bottom Bar */
.pb-safe {
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Spin Slow Animation */
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spinSlow 12s linear infinite;
}

/* Pulse Button Effect */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.pulse-btn {
    animation: pulseGlow 2s infinite;
}

.pulse-floating-btn {
    animation: pulseGlow 1.8s infinite;
}

/* Modal Animation */
@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.25s ease-out forwards;
}

/* Active Price Filter Button */
.filter-btn.active {
    background-color: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.3);
}

/* Mobile Touch Optimization */
@media (max-width: 640px) {
    .filter-btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}
