/*
|--------------------------------------------------------------------------
| PROJECT REDLINE - SHOWROOM
|--------------------------------------------------------------------------
*/

.showroom-page {

    position: fixed;

    top: 88px;

    left: 0;

    width: 100%;

    height: calc(100vh - 88px);

    overflow: hidden;

    background:
        linear-gradient(
            rgba(0,0,0,.25),
            rgba(0,0,0,.65)
        ),
        url('/assets/images/showroom-bg.png');

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}

.showroom-layout {

    position: relative;

    width: 100%;

    height: 100%;
}

/*
|--------------------------------------------------------------------------
| VEHICLE
|--------------------------------------------------------------------------
*/

.showroom-vehicle-section {

    position: relative;

    width: 100%;

    height: 100%;
}

.showroom-scene {

    position: relative;

    width: 100%;

    height: 100%;
}

.showroom-vehicle-wrapper {

    position: absolute;

    left: 42%;

    bottom: 2%;

    transform: translateX(-50%);

    width: 55vw;

    max-width: 1000px;

    min-width: 650px;

    height: 40vh;

    max-height: 500px;

    display: flex;

    align-items: flex-end;

    justify-content: center;
}

.showroom-vehicle-wrapper::after {

    content: '';

    position: absolute;

    bottom: 12px;

    left: 50%;

    transform: translateX(-50%);

    width: 620px;

    height: 80px;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(0,0,0,.85),
            transparent 75%
        );

    filter: blur(22px);

    z-index: 1;
}

.showroom-vehicle-wrapper .layered-car {

    position: relative;

    z-index: 5;

    width: 100%;

    height: 100%;

    transform: none;
}

/*
|--------------------------------------------------------------------------
| BOTTOM PANEL
|--------------------------------------------------------------------------
*/

.showroom-sidebar {

    position: absolute;

    right: 30px;

    top: 50%;

    transform: translateY(-50%);

    width: 320px;

    z-index: 50;

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.showroom-header {

    text-align: center;

    margin-bottom: 10px;
}

.showroom-car-name {

    color: white;

    font-size: 32px;

    font-weight: 900;

    line-height: 1.1;

    word-break: break-word;
}

.showroom-car-class {

    margin-top: 10px;

    display: inline-block;

    padding:
        6px 14px;

    border-radius: 999px;

    background:
        rgba(255,210,74,.12);

    border:
        1px solid rgba(255,210,74,.25);

    color: #FFD24A;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| CAR LIST
|--------------------------------------------------------------------------
*/

.showroom-car-list {

    display: none;
}

.showroom-car-card {

    min-width: 240px;

    padding: 16px;

    border-radius: 18px;

    background:
        rgba(255,255,255,.04);

    border:
        1px solid rgba(255,255,255,.05);

    cursor: pointer;

    transition: .2s ease;
}

.showroom-car-card:hover {

    transform:
        translateY(-2px);

    background:
        rgba(255,255,255,.07);
}

.showroom-car-card.active {

    background:
        rgba(255,69,0,.12);

    border:
        1px solid rgba(255,69,0,.35);
}

.showroom-car-card-name {

    color: white;

    font-size: 15px;

    font-weight: 800;
}

.showroom-car-card-rarity {

    margin-top: 8px;

    color:
        rgba(255,255,255,.55);

    font-size: 11px;

    text-transform: uppercase;
}

.showroom-car-card-price {

    margin-top: 12px;

    color: #FFB347;

    font-size: 14px;

    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| STATS
|--------------------------------------------------------------------------
*/

.showroom-stats {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.showroom-stat {

    padding: 12px;

    border-radius: 18px;

    background:
        rgba(255,255,255,.04);

    border:
        1px solid rgba(255,255,255,.05);

    text-align: center;
}

.showroom-stat-label {

    color:
        rgba(255,255,255,.55);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 8px;
}

.showroom-stat-value {

    color: white;

    font-size: clamp(16px, 1.2vw, 22px);

    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| COLORS
|--------------------------------------------------------------------------
*/

.showroom-color-picker {

    display: flex;

    justify-content: center;

    gap: 12px;

    padding: 14px;

    border-radius: 16px;

    background:
        rgba(0,0,0,.35);

    backdrop-filter: blur(10px);

    border:
        1px solid rgba(255,255,255,.05);
}

.showroom-color {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    cursor: pointer;

    border:
        2px solid rgba(255,255,255,.15);

    transition: .2s ease;
}

.showroom-color:hover {

    transform:
        scale(1.08);
}

.showroom-color.active {

    border:
        2px solid white;

    box-shadow:
        0 0 20px rgba(255,255,255,.3);
}

/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/

.showroom-bottom-panel {

    display: flex;

    flex-direction: column;

    gap: 12px;

    width: 100%;
}

.showroom-button {

    width: 100%;

    height: 64px;

    border: none;

    border-radius: 18px;

    cursor: pointer;

    color: white;

    font-size: 15px;

    font-weight: 900;

    transition: .2s ease;
}

.showroom-button:hover {

    transform:
        translateY(-2px);
}

#buyCarButton {

    background:
        linear-gradient(
            135deg,
            #FF4500,
            #B53000
        );
}

/*
|--------------------------------------------------------------------------
| ANIMATION
|--------------------------------------------------------------------------
*/

.showroom-switching .layered-car {

    opacity: 0;

    transform:
        scale(.55)
        translateY(12px);
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .showroom-vehicle-section {

        height: 45vh;
    }

    .showroom-vehicle-wrapper {

        height: 240px;
    }

    .showroom-vehicle-wrapper .layered-car {

        transform: scale(.42);
    }

    .showroom-car-name {

        font-size: 28px;
    }

    .showroom-stats {

        grid-template-columns:
            repeat(2,1fr);
    }

    .showroom-car-card {

        min-width: 190px;
    }
}