/* Custom Styles and Animations for Custom Garage */

body {
    background-color: #090d16;
    background-image: radial-gradient(circle at 50% 0%, #172554 0%, #090d16 70%);
    -webkit-tap-highlight-color: transparent;
}

/* Glass and Neumorphism */
.car-stage {
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.8) 0%, rgba(10, 15, 29, 0.95) 100%);
    backdrop-filter: blur(12px);
}

/* Neon Pulse Animation for Underglow */
@keyframes neonPulse {
    0%, 100% {
        opacity: 0.35;
        rx: 160;
    }
    50% {
        opacity: 0.75;
        rx: 185;
    }
}

.neon-pulse {
    animation: neonPulse 2.5s infinite ease-in-out;
}

/* Wheel Rotation during work/boost */
@keyframes spinWheel {
    100% {
        transform: rotate(360deg);
    }
}

.wheel-spinning {
    transform-origin: center;
    animation: spinWheel 0.3s infinite linear;
}

/* Exhaust Flame flicker */
@keyframes flameFlicker {
    0%, 100% { transform: scaleX(1); opacity: 0.7; }
    50% { transform: scaleX(1.4); opacity: 1; fill: #ff0055; }
}

.exhaust-flame {
    animation: flameFlicker 0.15s infinite alternate;
}

/* Drag race animations */
@keyframes speedRoad {
    0% { background-position: 0 0; }
    100% { background-position: -200px 0; }
}

.drag-road {
    background-image: repeating-linear-gradient(90deg, #1e293b 0, #1e293b 20px, #0f172a 20px, #0f172a 40px);
    background-size: 40px 100%;
}

.drag-road.active {
    animation: speedRoad 0.4s linear infinite;
}

/* Item Rarity Styles */
.rarity-common {
    border-color: #64748b;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
}
.rarity-rare {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(15, 23, 42, 0.9));
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}
.rarity-epic {
    border-color: #a855f7;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.8), rgba(15, 23, 42, 0.9));
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}
.rarity-legendary {
    border-color: #eab308;
    background: linear-gradient(135deg, rgba(113, 63, 18, 0.85), rgba(15, 23, 42, 0.95));
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.45);
}

/* Nav Active Glow */
.nav-btn.active {
    color: #00f2fe;
}
.nav-btn.active i {
    filter: drop-shadow(0 0 8px #00f2fe);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
