/* Car Loader Animation */
.car-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 15px;
}

.car-loader {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.car-icon {
    font-size: 32px;
    animation: carDrive 2s ease-in-out infinite;
}

.road {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        transparent 25%, 
        currentColor 25%, 
        currentColor 50%, 
        transparent 50%, 
        transparent 75%, 
        currentColor 75%, 
        currentColor 100%);
    background-size: 20px 3px;
    animation: roadMove 1s linear infinite;
    opacity: 0.3;
    margin-left: -10px;
}

.loader-dots {
    display: flex;
    gap: 6px;
}

.loader-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: dotPulse 1.4s ease-in-out infinite;
    opacity: 0.4;
}

.loader-dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.loader-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    animation: textFade 2s ease-in-out infinite;
}

/* Animations */
@keyframes carDrive {
    0%, 100% {
        transform: translateX(0px) translateY(0px);
    }
    25% {
        transform: translateX(5px) translateY(-2px);
    }
    50% {
        transform: translateX(10px) translateY(0px);
    }
    75% {
        transform: translateX(5px) translateY(2px);
    }
}

@keyframes roadMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Color variants for different sections */
.car-loader-blue .car-icon,
.car-loader-blue .loader-dot,
.car-loader-blue .road {
    color: #2196f3;
}

.car-loader-purple .car-icon,
.car-loader-purple .loader-dot,
.car-loader-purple .road {
    color: #9575cd;
}

.car-loader-orange .car-icon,
.car-loader-orange .loader-dot,
.car-loader-orange .road {
    color: #ff9800;
}
