/*
|--------------------------------------------------------------------------
| PROJECT REDLINE - GARAGE
|--------------------------------------------------------------------------
*/

.garage-page {

    width: 100%;

    min-height: 100vh;
}

.garage-bottom {

    padding:
        24px
        32px
        140px;

    display: flex;

    flex-direction: column;

    gap: 24px;
}

/*
|--------------------------------------------------------------------------
| SIDEBAR
|--------------------------------------------------------------------------
*/

.garage-sidebar-header {

    color: #FFF;

    font-size: 22px;

    font-weight: 900;

    margin-bottom: 18px;
}

.garage-car-list {

    display: flex;

    gap: 12px;

    overflow-x: auto;

    overflow-y: hidden;

    padding-bottom: 8px;
}

.garage-car-card {

    min-width: 240px;

    padding: 16px;

    border-radius: 20px;

    background:
        rgba(255,255,255,.03);

    border:
        1px solid transparent;

    cursor: pointer;

    transition: .2s ease;
}

.garage-car-card:hover {

    transform:
        translateX(4px);

    background:
        rgba(255,255,255,.06);
}

.garage-car-card.active {

    background:
        rgba(255,69,0,.12);

    border-color:
        rgba(255,69,0,.25);
}

.garage-car-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.garage-car-card-name {

    color: #FFF;

    font-size: 15px;

    font-weight: 800;
}

.garage-car-card-class {

    margin-top: 6px;

    color:
        rgba(255,255,255,.5);

    font-size: 12px;

    text-transform: uppercase;
}

.garage-selected-badge {

    padding:
        4px 10px;

    border-radius: 999px;

    background:
        rgba(0,255,120,.12);

    color: #00FF78;

    font-size: 10px;

    font-weight: 900;
}

/*
|--------------------------------------------------------------------------
| INFO
|--------------------------------------------------------------------------
*/

.garage-info {

    display: flex;

    flex-direction: column;

    gap: 18px;
}

.garage-info-header {

    padding: 4px;
}

.garage-car-name {

    color: #FFF;

    font-size: 38px;

    font-weight: 900;
}

.garage-car-class {

    margin-top: 10px;

    color: #FF4500;

    font-size: 13px;

    font-weight: 800;

    text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| STATS
|--------------------------------------------------------------------------
*/

.garage-stats {

    display: grid;

    grid-template-columns:
        repeat(5,1fr);

    gap: 12px;
}

.garage-stat {

    padding: 20px;

    border-radius: 18px;

    background:
        rgba(255,255,255,.03);

    border:
        1px solid rgba(255,255,255,.05);

    text-align: center;
}

.garage-stat-label {

    color:
        rgba(255,255,255,.5);

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;
}

.garage-stat-value {

    color: #FFF;

    font-size: 16px;

    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| BUTTON
|--------------------------------------------------------------------------
*/

.garage-select-main {

    width: 100%;

    height: 64px;

    border: none;

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            #FF4500,
            #B53000
        );

    color: #FFF;

    font-size: 15px;

    font-weight: 900;

    cursor: pointer;
}

/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1400px) {

    .garage-main {

        grid-template-columns:
            280px
            1fr;
    }

    .garage-info {

        grid-column:
            span 2;
    }
}

/*
|--------------------------------------------------------------------------
| LIGHT THEME
|--------------------------------------------------------------------------
*/

body.theme-light .garage-bottom {

    background:
        var(--background-color);
}

/*
|--------------------------------------------------------------------------
| TITLES
|--------------------------------------------------------------------------
*/

body.theme-light .garage-sidebar-header {

    color:
        var(--text-color);
}

body.theme-light .garage-car-name {

    color:
        var(--text-color);
}

/*
|--------------------------------------------------------------------------
| CARDS
|--------------------------------------------------------------------------
*/

body.theme-light .garage-car-card {

    background:
        var(--card-background);

    border:
        1px solid var(--card-border);
}

body.theme-light .garage-car-card:hover {

    background:
        var(--card-background-hover);

    border-color:
        rgba(255,69,0,0.15);
}

body.theme-light .garage-car-card-name {

    color:
        var(--text-color);
}

body.theme-light .garage-car-card-class {

    color:
        var(--text-muted);
}

/*
|--------------------------------------------------------------------------
| STATS
|--------------------------------------------------------------------------
*/

body.theme-light .garage-stat {

    background:
        var(--card-background);

    border:
        1px solid var(--card-border);
}

body.theme-light .garage-stat-label {

    color:
        var(--text-muted);
}

body.theme-light .garage-stat-value {

    color:
        var(--text-color);
}

/*
|--------------------------------------------------------------------------
| ACTIVE CAR
|--------------------------------------------------------------------------
*/

body.theme-light .garage-car-card.active {

    background:
        rgba(255,69,0,0.08);

    border-color:
        rgba(255,69,0,0.20);
}

/*
|--------------------------------------------------------------------------
| SELECTED BADGE
|--------------------------------------------------------------------------
*/

body.theme-light .garage-selected-badge {

    background:
        rgba(22,163,74,0.12);

    color:
        #16A34A;
}

/*
|--------------------------------------------------------------------------
| CAR SHADOW
|--------------------------------------------------------------------------
*/

body.theme-light .garage-car-wrapper::after {

    background:
        radial-gradient(
            ellipse at center,
            rgba(0,0,0,0.18),
            rgba(0,0,0,0)
        );
}

/*
|--------------------------------------------------------------------------
| TUNING BUTTON
|--------------------------------------------------------------------------
*/

.garage-actions {

    display: flex;

    gap: 14px;
}

.garage-tuning-button {

    height: 64px;

    padding:
        0 28px;

    border: none;

    border-radius: 18px;

    background:
        var(--card-background);

    border:
        1px solid var(--card-border);

    color:
        var(--text-color);

    font-size: 14px;

    font-weight: 900;

    cursor: pointer;

    transition:
        var(--transition-normal);
}

.garage-tuning-button:hover {

    border-color:
        rgba(255,52,52,0.35);

    box-shadow:
        0 0 20px rgba(255,52,52,0.12);
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    

    /*
    |--------------------------------------------------------------------------
    | CONTENT
    |--------------------------------------------------------------------------
    */

    .garage-bottom {

        padding:
            16px
            12px
            120px;

        gap: 16px;
    }

    /*
    |--------------------------------------------------------------------------
    | TITLE
    |--------------------------------------------------------------------------
    */

    .garage-car-name {

        font-size: 24px;
    }

    .garage-car-class {

        font-size: 11px;
    }

    /*
    |--------------------------------------------------------------------------
    | STATS
    |--------------------------------------------------------------------------
    */

    .garage-stats {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 8px;
    }

    .garage-stat {

        padding: 14px;
    }

    /*
    |--------------------------------------------------------------------------
    | CAR LIST
    |--------------------------------------------------------------------------
    */

    .garage-car-card {

        min-width: 180px;
    }

    /*
    |--------------------------------------------------------------------------
    | ACTIONS
    |--------------------------------------------------------------------------
    */

    .garage-actions {

        display: grid;

        grid-template-columns:
            1fr;

        gap: 10px;
    }

    .garage-tuning-button,
    .garage-select-main {

        width: 100%;
    }
}