/* ============================================
   HOME PAGE — Match Cards & Date Filter
   Page : / (accueil) — grille de cards matchs du soir
   ============================================ */

/* Match Cards Styles - Accueil Page */

/* Date filter + KPIs bar (compact, one-line, dense, transparent — pas de bandeau).
   margin-top = margin-bottom = 20px → meme respiration au-dessus (vs page-header)
   et en-dessous (vs grille match cards). */
.date-filter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.recap-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.recap-header-kpis {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.recap-match-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-primary);
    padding-left: 6px;
    white-space: nowrap;
}

.btn-today {
    padding: 7px 14px;
    border: none;
    border-radius: 6px;
    background-color: var(--color-primary);
    color: white;  /* white pur OK : contraste sur fond primary saturé */
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-today:hover {
    background-color: var(--color-primary-active);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(var(--color-primary-rgb), 0.3);
}

.btn-today:active {
    transform: translateY(0);
}

/* Match cards grid */
.match-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .match-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual match card */
.match-card {
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.match-card:hover {
    background-color: var(--color-bg-surface-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.match-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.match-card-body {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Team sections */
.team-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.team-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    object-fit: contain;
}

.team-info {
    flex: 1;
    /* position: relative -> ancrage pour team-delta-ou (positionne en absolute).
       Le delta sort du flux normal, donc team-info a la hauteur du seul
       team-name, et le team-section parent (align-items: center) le centre
       sur la baseline du logo et du score. */
    position: relative;
}

/* Delta O/U sous le nom de l'equipe : position absolue pour ne pas pousser
   le nom hors-axe du score. Visible en dessous, aligne a gauche/droite selon
   le sens du flux (le parent team-section gere via flex-direction). */
.team-delta-ou {
    position: absolute;
    top: 100%;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Nom de l'equipe (Atlanta, Brooklyn, ...) — affichage principal sous le logo.
   Le tri-code (ATL/BKN) a ete retire des cards : le logo + le nom de ville
   suffisent a identifier l'equipe. Couleur dynamique : blanc gagnant / gris
   perdant (meme palette que .score--winner / .score--loser). */
.team-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-muted);  /* defaut : pas de score (a venir) */
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.team-name--winner {
    color: var(--color-text-primary);
}
.team-name--loser {
    color: var(--color-text-muted);
}

/* Score section */
.score-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.score {
    font-size: 22px;
    font-weight: 700;
    /* Defaut : pas de score (a venir) ou egalite improbable → gris discret */
    color: var(--color-text-muted) !important;
    margin: 0;
    min-width: 35px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Equipe gagnante : score blanc franc */
.score--winner {
    color: var(--color-text-primary) !important;
}

/* Equipe perdante : score gris doux */
.score--loser {
    color: var(--color-text-muted) !important;
}

.score-separator {
    font-size: 20px;
    color: var(--color-text-light);
    margin: 0;
}

/* Match card footer : quart-temps centres dans la barre, badges en absolute a droite.
   Position absolute = la presence/absence d'un badge ne decale pas le texte centre
   et n'ajoute aucun espace vide en bas de la card. */
.match-card-footer {
    position: relative;
    background-color: var(--color-bg-surface);
    padding: 8px 15px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}

.match-card-footer-badges {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-card-footer-label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0;
    font-style: italic;
}

/* Quart-temps : score gagnant blanc, perdant gris. Egalite : les deux gris. */
.match-card-footer-qt {
    text-align: center;
}

.qt-score {
    font-variant-numeric: tabular-nums;
}

.qt-score--winner {
    color: var(--color-text-primary);
    font-weight: 600;
}

.qt-score--loser {
    color: var(--color-text-muted);
}

.qt-score-sep {
    color: var(--color-text-muted);
}

/* No matches container */
.no-matches-container {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.no-matches-message {
    color: var(--color-text-muted);
    font-size: 18px;
    margin: 0;
}



