﻿.game-options-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    max-height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 8px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 100%;
}

.section-header {
    flex: 0 0 auto;
    text-align: center;
    border-bottom: 3px solid var(--primary-red);
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.section-header h3 {
    font-weight: 900;
    color: var(--secondary-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.setup-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.section-settings {
    flex: 0 0 auto;
}

.section-players {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.scrollable-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 12px;
}

.btn-outline-custom {
    color: var(--secondary-gray);
    border-color: #ced4da;
    font-weight: 600;
}

.section-settings .btn-check:checked + .btn-outline-custom,
.section-players .btn-check:checked + .btn-outline-custom {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 6px rgba(204, 0, 51, 0.3);
}

.section-settings .form-label, .section-players .form-label {
    margin-bottom: 3px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
}

.match-options {
    background: #fff0f3;
    border: 1px solid #ffccd5;
    border-radius: 8px;
    padding: 10px;
    margin-top: 5px;
    display: none;
}

.section-players .input-group-text {
    background-color: var(--secondary-gray);
    color: white;
    border: none;
    font-weight: 700;
    width: 40px;
    justify-content: center;
}

/* LANDSCAPE 2-COLUMN VIEW */
@media (max-height: 500px) and (orientation: landscape) {
    .game-options-container {
        max-width: 100vw;
        border-radius: 0;
        box-shadow: unset;
    }

    .section-header {
        margin-bottom: 5px;
    }

    .section-header h3 {
        font-size: 1.1rem;
    }

    .setup-content-wrapper {
        flex-direction: row;
        gap: 15px;
    }

    .section-settings {
        flex: 1.2;
        overflow-y: auto;
        padding-right: 5px;
    }

    .section-players {
        flex: 1;
        margin: 0;
    }

    .scrollable-list {
        height: 100%;
    }
}

/* FAB start */
.btn-primary-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 3000;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    border: none;
    text-decoration: none;
}

    .btn-primary-fab:hover {
        transform: scale(1.1);
        background-color: #b3002d;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    }

    .btn-primary-fab:active {
        transform: scale(0.95);
    }

/* Mobil optimalizálás: ha útban lenne, kicsit kisebb lehet */
@media (max-width: 767px) {
    .game-options-container {
        box-shadow: unset;
    }

    .btn-primary-fab {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}