
/* Game Finder: layout en filterpaneel worden gedeeld met Rising Stars.
   ps-layout / ps-main komen uit player-scores.css.
   FilterPanel gebruikt de stijlen uit filters.css. */

.gf-title {
    margin: 0 0 12px !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.gf-table {
    width: 100%;
    min-width: 0;
}

.gf-table .mud-table-container {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.gf-table .mud-table-cell {
    white-space: nowrap;
}

.gf-table .gf-num {
    text-align: right;
}

.gf-table .comparison-action-cell {
    white-space: nowrap;
}

.gf-table .comparison-action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ps-layout--filters-open > .ps-main {
        display: none;
    }

    .ps-layout {
        display: block;
        min-height: 0;
        margin: 24px 16px 0;
        overflow-x: clip;
    }

    .filter-panel {
        position: static;
        width: 100%;
        height: calc(100dvh - 140px);
        max-height: none;
        margin-bottom: 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .ps-main {
        width: 100%;
        min-width: 0;
    }

    .ps-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .gf-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.05;
    }

    .gf-table {
        max-width: 100%;
        min-width: 0;
    }

    /* Tabel volledig binnen de schermbreedte houden */
    .gf-table .mud-table-container {
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
    }

    .gf-table .mud-table-root {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .gf-table .mud-table-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Lange waarden mogen afbreken */
    .gf-table .mud-table-cell {
        padding: 8px 10px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .gf-table .mud-table-body .mud-table-row > .mud-table-cell {
        border-bottom: 1px solid #EDF2F6;
    }

    .gf-table .mud-table-body .mud-table-row > .mud-table-cell:last-child {
        border-bottom: 3px solid #B8C9D8;
    }

    .gf-table .mud-table-body .mud-table-row > .comparison-action-cell {
        width: 100%;
        min-width: 0;
    }

    .gf-table .comparison-action-buttons {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    /* Sorteerselectie op kleine schermen */
    .gf-table .mud-table-smalldevices-sortselect .mud-input {
        height: auto;
        min-height: 48px;
    }

    .gf-table .mud-table-smalldevices-sortselect .mud-select-input .mud-input-slot {
        display: block;
        overflow: visible;
        white-space: normal;
        text-overflow: clip;
    }

    .gf-table .mud-table-smalldevices-sortselect .mud-select-input .mud-input-slot .mud-typography {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .ps-layout {
        margin: 16px 12px 0;
    }

    .gf-filter-panel-wrapper {
        width: 100%;
        min-width: 0;
    }

    .gf-filter-panel-wrapper .filter-panel {
        position: static;
        width: 100%;
        height: auto;
        min-height: calc(100dvh - 120px);
        max-height: none;
        margin-bottom: 20px;
        box-sizing: border-box;
        overflow-y: visible;
    }

    .gf-title {
        font-size: 2rem;
    }

    .gf-table .mud-table-toolbar {
        padding: 8px 12px;
    }
}
