﻿@import "/UI/Core/Styles/Theme.scss";

LobbyRow {
    width: 100%;
    pointer-events: all;
    flex-shrink: 0;
    flex-direction: column;
    gap: 6px;
    padding: 10px 10px;
    border: 1px solid rgba( 255, 255, 255, 0.2 );
    border-radius: 6px;
    background-color: rgba( 0, 0, 0, 0.22 );
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;

    .lobby-row {
        width: 100%;
        //flex-direction: column;
        //gap: 6px;
        //padding: 10px 12px;
        // border: 1px solid rgba( 255, 255, 255, 0.2 );
        // border-radius: 6px;
        // background-color: rgba( 0, 0, 0, 0.22 );
        // cursor: pointer;
        // transition: background-color 0.12s ease, border-color 0.12s ease;
    }

    .lobby-row:hover {
        background-color: rgba( 255, 255, 255, 0.06 );
        border-color: rgba( 255, 255, 255, 0.24 );
    }

    .lobby-row.dev {
        border-color: rgba( $warning-orange, 0.45 );
        background-color: rgba( $warning-orange, 0.08 );
    }

    .lobby-row.restricted {
        border-color: rgba( 255, 255, 255, 0.14 );
        background-color: rgba( 0, 0, 0, 0.28 );
    }

    .lobby-row.full {
        opacity: 0.55;
        cursor: not-allowed;
    }

    .lobby-row-top,
    .lobby-row-bottom {
        width: 100%;
        align-items: center;
        gap: 8px;
    }

    .lobby-row-top {
        justify-content: space-between;
    }

    .lobby-name {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1.1px;
        color: rgba( 255, 255, 255, 0.95 );
        text-shadow: none;
    }

    .lobby-type-icon {
        font-size: 16px;
        color: rgba( 255, 255, 255, 0.78 );
    }

    .lobby-stats {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        min-width: 110px;
        justify-content: flex-end;
        white-space: nowrap;
    }

    .lobby-ping {
        font-size: 11px;
        color: rgba( 255, 255, 255, 0.7 );
        text-shadow: none;
        white-space: nowrap;

        &.good { color: #82c97f; }
        &.ok { color: #d8c864; }
        &.bad { color: #d96e6e; }
    }

    .lobby-count {
        font-size: 11px;
        color: rgba( 255, 255, 255, 0.7 );
        text-shadow: none;
        white-space: nowrap;
    }

    .grow {
        flex-grow: 1;
    }

    .lobby-map {
        font-size: 11px;
        color: rgba( 255, 255, 255, 0.72 );
        text-shadow: none;
    }

    .lobby-access-note {
        font-size: 10px;
        letter-spacing: 0.7px;
        text-transform: uppercase;
        color: rgba( $warning-orange, 0.9 );
        text-shadow: none;
    }

    .lobby-flag {
        font-size: 14px;
        color: rgba( $warning-orange, 0.9 );
    }

    .lobby-mode {
        font-size: 11px;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        color: rgba( 255, 255, 255, 0.76 );
        text-shadow: none;
    }

    .lobby-privacy-badge {
        align-items: center;
        gap: 4px;
        padding: 2px 7px;
        border-radius: 999px;
        border: 1px solid rgba( 255, 255, 255, 0.12 );
        background-color: rgba( 255, 255, 255, 0.04 );
    }

    .lobby-privacy-icon {
        font-size: 12px;
        color: rgba( 255, 255, 255, 0.72 );
    }

    .lobby-privacy-label {
        font-size: 10px;
        letter-spacing: 0.7px;
        text-transform: uppercase;
        color: rgba( 255, 255, 255, 0.76 );
        text-shadow: none;
    }
}
