/* HoFi Billard - Turneringsstilling */

.standings-page {
    max-width: 1220px;
    margin: 0 auto;
}

.standings-header {
    margin: 28px 0 20px;
}

.standings-header h1 {
    margin: 0 0 12px;
    font-size: 34px;
}

.standings-header p {
    margin: 0;
    color: var(--muted);
}

.standings-card {
    overflow: hidden;
}

.standings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px;
}

.standings-card-header h2 {
    margin: 0 0 5px;
    font-size: 24px;
}

.standings-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.standings-team-count {
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(77, 163, 255, .12);
    color: #8fc5ff;
    font-weight: 700;
    white-space: nowrap;
}

.standings-table-wrap {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.standings-table th,
.standings-table td {
    padding: 15px 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    vertical-align: middle;
}

.standings-table thead th {
    padding-top: 12px;
    padding-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.standings-table tbody tr {
    transition: background .15s ease;
}

.standings-table tbody tr:hover {
    background: rgba(255, 255, 255, .025);
}

.standings-table .col-position,
.standings-table .position-cell {
    width: 70px;
}

.standings-table .col-team,
.standings-table .team-cell {
    text-align: left;
}

.team-cell a {
    color: var(--text);
    font-weight: 700;
}

.team-cell a:hover {
    color: var(--primary);
}

.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-weight: 800;
    background: rgba(255, 255, 255, .06);
}

.position-1 .position-badge {
    background: rgba(255, 193, 7, .18);
    color: #ffd65a;
}

.position-2 .position-badge {
    background: rgba(210, 220, 230, .14);
    color: #dbe5ef;
}

.position-3 .position-badge {
    background: rgba(205, 127, 50, .18);
    color: #e7a768;
}

.league-points {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}

.average-cell {
    font-weight: 700;
}

.standings-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 15px 24px 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.standings-legend strong {
    color: var(--text);
}

@media (max-width: 700px) {
    .standings-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .standings-header h1 {
        font-size: 29px;
    }

    .standings-card-header {
        padding: 18px;
    }

    .standings-table th,
    .standings-table td {
        padding: 13px 12px;
    }

    .standings-legend {
        padding: 14px 18px 16px;
    }
}




/* v1.3 - Forbedring kolonne alignment */

.standings-table th.col-improvement,
.standings-table td.improvement-cell {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    text-align: center !important;
    white-space: nowrap;
}

.standings-table td.improvement-cell {
    font-weight: 800;
}

.standings-table td.improvement-cell.positive {
    color: #58d68d;
}

.standings-table td.improvement-cell.negative {
    color: #ff6b6b;
}

.standings-table td.improvement-cell.neutral {
    opacity: .75;
}


/* v1.4 - Individuel stilling */
.individual-standings-table .team-cell{
    font-weight:700;
}
.position-badge.position-empty{
    opacity:.55;
    background:transparent;
    box-shadow:none;
}
