/* Parallax hatású verseny háttér a DreamDrive oldalhoz - világos színben */
.racing-bg-section {
    position: relative;
    padding: 80px 0;
    background-color: #f5f5f5;
    overflow: hidden;
}

.racing-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, #e0e0e0 25%, #d0d0d0 25%, #d0d0d0 50%, #e0e0e0 50%, #e0e0e0 75%, #d0d0d0 75%, #d0d0d0 100%);
    background-size: 20px 20px;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.6;
    z-index: 0;
}

.racing-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    z-index: 1;
}

/* Elegáns átmenet az alján a furcsa mintázat helyett */
.racing-track-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.05), transparent);
    z-index: 1;
}

.racing-bg-content {
    position: relative;
    z-index: 2;
}

/* Animált elemek a háttérben */
.speed-blur {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: speedBlur 3s linear infinite;
    z-index: 1;
    opacity: 0.5;
}

.speed-blur:nth-child(1) {
    top: 20%;
    left: -100%;
    width: 60%;
    animation-delay: 0s;
}

.speed-blur:nth-child(2) {
    top: 40%;
    left: -100%;
    width: 40%;
    animation-delay: 0.5s;
}

.speed-blur:nth-child(3) {
    top: 60%;
    left: -100%;
    width: 70%;
    animation-delay: 1s;
}

.speed-blur:nth-child(4) {
    top: 80%;
    left: -100%;
    width: 50%;
    animation-delay: 1.5s;
}

@keyframes speedBlur {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(200%);
    }
}

/* Reszponzív beállítások */
@media (max-width: 768px) {
    .racing-bg-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .racing-bg-parallax {
        background-attachment: scroll;
    }
}
