/* ===========================================
   Injuries Page Styles
   =========================================== */

/* Tonight filter container — aligne a gauche, sous la legende. */
.tonight-filter-container {
    display: flex;
    justify-content: flex-start;
    padding: 0;
    margin-bottom: 0;
}

.tonight-filter-checkbox label {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
}

/* Injury badges grid — masonry layout (Pinterest-like).
   Pas d'espace mort entre les cards : chaque colonne empile ses badges
   independamment, peu importe la taille des voisins.
   Ordre de lecture : vertical (col 1 puis col 2 puis col 3). */
.injury-badges-grid {
    column-count: 3;
    column-gap: 20px;
    padding: 0 20px;
}

.injury-badges-grid > .team-badge {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .injury-badges-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .injury-badges-grid {
        column-count: 1;
        column-gap: 15px;
        padding: 0 10px;
    }
    .injury-badges-grid > .team-badge {
        margin-bottom: 15px;
    }
}

/* Team badge — pattern Dark Elevation accentue (cf depth-chart player cards).
   Fond BG_ELEVATED (plus clair que la page) + ombre + highlight 1px en haut
   → la card flotte visiblement au-dessus du fond, identifiable dans la masse. */
.team-badge {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        var(--shadow-md);
    overflow: hidden;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.team-badge:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--color-border-strong);
}

/* Team badge header : transparent (herite du BG_ELEVATED de la card),
   le compteur d'absents a droite en pill rouge subtle = seul accent visuel. */
.team-badge-header {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: transparent;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-primary);
}

.team-badge-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-right: 12px;
    flex-shrink: 0;
}

.team-badge-info {
    flex: 1;
    min-width: 0;
}

.team-badge-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.team-badge-date {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 2px;
    display: block;
}

.team-badge-opponent {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    color: var(--color-warning-text);
}

/* Team badge body */
.team-badge-body {
    padding: 0;
}

/* Injury table */
.injury-table {
    width: 100%;
}

.injury-table .dash-table-container {
    border-radius: 0;
    box-shadow: none;
}

.injury-table .dash-cell {
    border: none !important;
    border-bottom: 1px solid var(--color-border-light) !important;
}

.injury-table .dash-header {
    border: none !important;
    border-bottom: 2px solid var(--color-border) !important;
}

/* Injury count badge — pill rouge subtle (cohérent avec les autres badges
   d'absence de l'app : page Effectif, mini-cards header game-details). */
.injury-count-badge {
    background-color: var(--color-danger-subtle);
    color: var(--color-danger-text);
    border: 1px solid var(--color-danger);
    border-radius: 999px;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.injury-count-badge-legend {
    background-color: var(--color-danger-subtle);
    color: var(--color-danger-text);
    border: 1px solid var(--color-danger);
    border-radius: 999px;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
}

.injury-count-badge-legend::after {
    content: 'N';
}

/* No injuries container */
.no-injuries-container {
    text-align: center;
    padding: 30px 20px;
    background: var(--color-bg-surface-alt);
}

.no-injuries-text {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 10px 0 0 0;
}

/* Responsive injury table font sizes */
@media (max-width: 1200px) {
    .injury-table .dash-cell {
        font-size: 12px !important;
        padding: 8px 6px !important;
    }
}

@media (max-width: 992px) {
    .injury-table .dash-cell {
        font-size: 11px !important;
        padding: 6px 4px !important;
    }

    .team-badge-logo {
        width: 40px;
        height: 40px;
    }

    .team-badge-name {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .injury-table .dash-cell {
        font-size: 10px !important;
        padding: 5px 3px !important;
    }
}

