/*
|--------------------------------------------------------------------------
| PROJECT REDLINE - STYLING SYSTEM
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| MODAL
|--------------------------------------------------------------------------
*/

.styling-modal {
    width: 100%;
    min-width: 1100px;

    display: grid;

    grid-template-columns:
        1.3fr
        0.7fr;

    gap: 30px;
}

/*
|--------------------------------------------------------------------------
| PREVIEW
|--------------------------------------------------------------------------
*/

.styling-preview {
    position: relative;

    width: 100%;
    height: 620px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 32px;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.28),
            rgba(0, 0, 0, 0.48)
        ),
        url('/assets/images/garage-bg.png');

    background-size: cover;
    background-position: center;
}

/*
|--------------------------------------------------------------------------
| PREVIEW CAR
|--------------------------------------------------------------------------
*/

.styling-preview-car {
    width: 100%;
    max-width: 980px;
    height: 520px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.styling-preview-car .layered-car {
    transform: scale(1.15);
}

/*
|--------------------------------------------------------------------------
| CONTROLS
|--------------------------------------------------------------------------
*/

.styling-controls {
    display: flex;
    flex-direction: column;

    gap: 22px;
}

/*
|--------------------------------------------------------------------------
| GROUP
|--------------------------------------------------------------------------
*/

.styling-group {
    padding: 24px;

    border-radius: 26px;

    background:
        linear-gradient(
            135deg,
            rgba(14, 14, 14, 0.98),
            rgba(8, 8, 8, 0.98)
        );

    border:
        1px solid rgba(255, 255, 255, 0.05);
}

/*
|--------------------------------------------------------------------------
| LABEL
|--------------------------------------------------------------------------
*/

.styling-label {
    margin-bottom: 18px;

    color: #FFFFFF;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: 0.5px;
}

/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/

.styling-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}

/*
|--------------------------------------------------------------------------
| COLOR BUTTON
|--------------------------------------------------------------------------
*/

.styling-color {
    width: 54px;
    height: 54px;

    border: none;
    border-radius: 18px;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.styling-color:hover {
    transform: scale(1.05);
}

/*
|--------------------------------------------------------------------------
| RED
|--------------------------------------------------------------------------
*/

.styling-color.red {
    background:
        linear-gradient(
            135deg,
            #FF4343,
            #D90000
        );

    box-shadow:
        0 0 22px rgba(255, 42, 42, 0.22);
}

/*
|--------------------------------------------------------------------------
| BLUE
|--------------------------------------------------------------------------
*/

.styling-color.blue {
    background:
        linear-gradient(
            135deg,
            #4BA3FF,
            #0062D9
        );

    box-shadow:
        0 0 22px rgba(75, 163, 255, 0.22);
}

/*
|--------------------------------------------------------------------------
| SILVER
|--------------------------------------------------------------------------
*/

.styling-color.silver {
    background:
        linear-gradient(
            135deg,
            #F2F2F2,
            #8E8E8E
        );

    box-shadow:
        0 0 22px rgba(255, 255, 255, 0.14);
}

/*
|--------------------------------------------------------------------------
| BLACK
|--------------------------------------------------------------------------
*/

.styling-color.black {
    background:
        linear-gradient(
            135deg,
            #2B2B2B,
            #000000
        );

    border:
        1px solid rgba(255, 255, 255, 0.08);
}

/*
|--------------------------------------------------------------------------
| ACTIVE
|--------------------------------------------------------------------------
*/

.styling-color.active {
    transform: scale(1.08);

    border:
        2px solid rgba(255, 255, 255, 0.18);
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 1200px) {

    .styling-modal {
        min-width: auto;

        grid-template-columns: 1fr;
    }

    .styling-preview {
        height: 420px;
    }

    .styling-preview-car {
        height: 320px;
    }

    .styling-preview-car .layered-car {
        transform: scale(1);
    }
}

@media (max-width: 768px) {

    .styling-preview {
        height: 320px;
    }

    .styling-group {
        padding: 18px;
    }

    .styling-color {
        width: 48px;
        height: 48px;
    }
}