/* Hero Slider a főoldalhoz - DreamDrive */

/* Slider konténer */
.hero-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 600px; /* Állítsd be a kívánt magasságot */
}

/* Slider slide-ok */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Slide tartalom - új elrendezés: 2 oszlop (szöveg balra, kép jobbra) */
.hero-slide-content {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    padding: 0 5%; /* Kisebb padding, hogy több hely legyen a tartalomnak */
    justify-content: space-between; /* Elemek szétterítése */
    align-items: center;
    flex-direction: row; /* Vízszintes elrendezés */
}

/* Szöveg balra igazítva - kifinomult design */
.hero-slide-text {
    padding: 40px 50px;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    width: 35%;
    order: 0;
    position: relative;
    z-index: 10;
}

/* Kép jobbra */
.hero-slide-image {
    display: flex;
    align-items: center; /* Vertikálisan középre */
    justify-content: flex-end; /* Jobbra igazítás */
    overflow: visible;
    position: relative;
    margin-bottom: 0;
    width: 50%;
    order: 1;
    max-height: 450px; /* Megnövelt magasság */
}

.hero-slide-image img {
    width: 110%; /* Nagyobb kép */
    height: auto;
    object-fit: contain;
    max-height: 100%;
    opacity: 0; /* Kezdetben nem látható */
    transform: translateX(-50px); /* Kezdetben balra a képernyőn kívül */
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1s ease;
}

.hero-slide.active .hero-slide-image img {
    opacity: 1;
    transform: translateX(0); /* Beúszik balról jobbra */
}

/* Szöveg és címek (balra igazítva) - kifinomult design */
.hero-slide h1 {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #000;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 4px;
    position: relative;
    padding-bottom: 15px;
}

.hero-slide h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: rgb(215, 86, 0);
}

.hero-car-brand {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: #000;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding-bottom: 4px;
}

.hero-car-name {
    font-size: 3.6rem;
    font-weight: 600;
    margin: 0 0 0 0;
    color: #000;
    line-height: 1;
    text-align: left;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.hero-car-name:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,0,0,0.3), transparent);
}

/* Autó leírás stílusa */
.hero-car-description {
    display: none;
    font-size: 1.1rem;
}

/* Specifikációk dobozok - abszolút pozícióban alul */
.hero-car-specs {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    order: 2;
    position: absolute;
    z-index: 20;
    margin-top: 10px;
    margin-bottom: 0;
    bottom: 0%;
    left: 8%;
}

.spec-box {
    background-color: rgba(215, 86, 0, 0.85); /* Narancssárga szín áttetszőséggel */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    text-align: center;
    opacity: 0; /* Kezdetben nem látható */
    transform: translateY(40px); /* Kezdetben lejjebb */
    transition: transform 0.6s ease, opacity 0.6s ease;
    min-width: 120px;
    display: inline-block;
    border-radius: 10px; /* Lekerekített sarkok */
    backdrop-filter: blur(3px); /* Háttér enyhe elmosása */
}

/* Spec boxok animációja - alulról felfelé késleltetéssel */
.spec-box {
    transform: translateY(40px); /* Kezdetben lejjebb */
    opacity: 0;
}

.hero-slide.active .spec-box:nth-child(1) {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.hero-slide.active .spec-box:nth-child(2) {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.4s;
}

.hero-slide.active .spec-box:nth-child(3) {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.6s;
}

.spec-title {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    font-weight: 500;
}

.spec-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

/* Leírás és gombok (balra igazítva) - kifinomult */
.hero-car-description {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.8);
    margin: 20px 0 30px 0;
    line-height: 1.7;
    text-align: left;
    font-weight: 300;
    max-width: 90%;
    position: relative;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start; /* Balra igazítás */
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    padding: 20px 35px;
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    color: #000;
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Fényvonalak effektus a háttérben */
.hero-light-trails {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.light-trail {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,0,0,0) 0%, rgba(255,0,0,0.3) 50%, rgba(255,0,0,0) 100%);
    animation: lightTrail 8s infinite linear;
}

.trail-1 {
    top: 30%;
    width: 80%;
    left: -80%;
    animation-delay: 0s;
}

.trail-2 {
    top: 60%;
    width: 60%;
    left: -60%;
    animation-delay: 2s;
}

.trail-3 {
    top: 45%;
    width: 70%;
    left: -70%;
    animation-delay: 4s;
}

@keyframes lightTrail {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100%));
        opacity: 0;
    }
}

/* Slider navigáció */
.hero-slider-nav {
    position: absolute;
    bottom: 30px;
    right: 50px;
    z-index: 20;
    display: flex;
    gap: 15px;
}

.nav-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Reszponzív beállítások */
@media (max-width: 1200px) {
    .hero-slider {
        height: 500px;
    }
    
    .hero-slide h1 {
        font-size: 2.4rem;
    }
    
    .hero-car-name {
        font-size: 3rem;
    }
    
    .hero-slide-text {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 450px;
    }
    
    .hero-slide h1 {
        font-size: 2.2rem;
    }
    
    .hero-car-name {
        font-size: 2.7rem;
    }
    
    .spec-box {
        padding: 10px;
        min-width: 100px;
    }
    
    .spec-value {
        font-size: 1.7rem;
    }
    
    .hero-slide-text {
        width: 50%;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: auto;
        min-height: 550px;
    }
    
    .hero-slide-content {
        flex-direction: column;
        padding: 20px 15px;
        min-height: 550px;
    }
    
    .hero-slide-text {
        width: 100%;
        max-width: 100%;
        padding: 15px 10px;
        order: 1;
        align-items: center;
        text-align: center;
    }
    
    .hero-slide-image {
        width: 80%;
        margin: 10px auto;
        order: 0;
        justify-content: center;
        max-height: 200px;
    }
    
    .hero-slide-image img {
        max-height: 200px;
    }
    
    .hero-car-specs {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
        gap: 8px;
    }
    
    .spec-box {
        padding: 10px 15px;
        min-width: 80px;
    }
    
    .hero-slide h1, 
    .hero-car-brand,
    .hero-car-name,
    .hero-car-description {
        text-align: center;
    }
    
    .hero-slide h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .hero-car-brand {
        font-size: 0.9rem;
    }
    
    .hero-car-name {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-car-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }
    
    .btn-primary, .btn-outline {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        min-height: 480px;
    }
    
    .hero-slide-content {
        min-height: 480px;
        padding: 15px 10px;
    }
    
    .hero-slide-image {
        max-height: 160px;
    }
    
    .hero-slide-image img {
        max-height: 160px;
    }
    
    .hero-slide h1 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .hero-car-name {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .hero-car-description {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .btn-primary, .btn-outline {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .spec-value {
        font-size: 1.2rem;
    }
    
    .spec-title {
        font-size: 0.6rem;
    }
    
    .spec-box {
        padding: 8px 12px;
        min-width: 70px;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 8px;
    }
    
    .hero-car-specs {
        gap: 6px;
    }
}
