/* Standings Page Styles */

.standings-section {
    padding: 20px 0;
}

.standings-status {
    text-align: center;
    margin-bottom: 30px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.standings-status.in-progress {
    background-color: rgba(4, 135, 142, 0.1);
    color: var(--primary-teal);
    border: 1px solid rgba(4, 135, 142, 0.2);
}

.standings-status.complete {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

/* Group Section */
.standings-group {
    margin-bottom: 40px;
}

.standings-group-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary-gold);
    display: inline-block;
}

/* Table */
.standings-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 650px;
    table-layout: fixed;
}

/* Fixed column widths for consistent alignment across tables */
.standings-table .col-pos { width: 40px; }
.standings-table .col-team { min-width: 200px; /* takes remaining space */ }
.standings-table .col-stat { width: 50px; }
.standings-table .col-pts { width: 55px; }

.standings-table thead {
    background-color: var(--primary-navy);
}

.standings-table th {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    text-align: center;
    white-space: nowrap;
}

.standings-table th.team-col {
    text-align: left;
    padding-left: 16px;
}

.standings-table td {
    padding: 12px 10px;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.standings-table tbody tr:last-child td {
    border-bottom: none;
}

.standings-table tbody tr:hover {
    background-color: rgba(21, 31, 56, 0.03);
}

/* Qualification zone highlighting */
.standings-table tbody tr.qualifies-semis {
    background-color: rgba(4, 135, 142, 0.06);
}

.standings-table tbody tr.qualifies-semis:hover {
    background-color: rgba(4, 135, 142, 0.1);
}

.standings-table tbody tr.positional-zone {
    background-color: rgba(214, 202, 150, 0.08);
}

.standings-table tbody tr.positional-zone:hover {
    background-color: rgba(214, 202, 150, 0.15);
}

/* Position column */
.standings-pos {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-navy);
    width: 40px;
}

/* Team cell */
.standings-team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding-left: 16px !important;
}

.standings-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.standings-team-name {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.9rem;
}

/* Points column highlight */
.standings-pts {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-navy);
}

/* Stat columns */
.standings-stat {
    color: var(--text-light);
    font-size: 0.85rem;
}

.standings-stat.positive {
    color: #2e7d32;
}

.standings-stat.negative {
    color: #c62828;
}

/* Legend */
.standings-legend {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.standings-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.standings-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.standings-legend-swatch.semis {
    background-color: rgba(4, 135, 142, 0.2);
    border: 1px solid rgba(4, 135, 142, 0.4);
}

.standings-legend-swatch.positional {
    background-color: rgba(214, 202, 150, 0.25);
    border: 1px solid rgba(214, 202, 150, 0.5);
}

/* Loading state */
.standings-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.standings-loading .loading-spinner {
    margin: 0 auto 16px;
}

/* No data state */
.standings-no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .standings-group-header {
        font-size: 1.1rem;
    }

    .standings-table th,
    .standings-table td {
        padding: 10px 6px;
        font-size: 0.8rem;
    }

    .standings-team-logo {
        width: 22px;
        height: 22px;
    }

    .standings-team-name {
        font-size: 0.8rem;
    }

    .standings-team-cell {
        gap: 6px;
        padding-left: 10px !important;
    }

    .standings-legend {
        flex-direction: column;
        gap: 8px;
    }

    .standings-status {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .standings-table th,
    .standings-table td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
}
