/* ============================================================================
   partite.css — l'elenco compatto delle partite.

   Nato in results.php (bozza "Filtri nel cassetto") e poi condiviso con
   matches.php e con le "Ultime Partite" di team-detail.php: una riga per
   partita con la data a sinistra, le due squadre una sopra l'altra col
   punteggio a destra, un separatore nero/oro per ogni giornata.

   Le regole stanno qui e non nelle pagine, altrimenti ogni ritocco andrebbe
   ripetuto tre volte e le pagine tornerebbero a divergere.
   ============================================================================ */

.res-list {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Dentro una .app-card la scheda c'e' gia': niente doppio bordo. */
.app-card .res-list {
    border-radius: 0;
    box-shadow: none;
}

.res-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    /* Stessa coppia nero/oro delle intestazioni .app-card-header */
    background-color: var(--app-black);
    color: var(--app-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.res-day-count {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--app-gold);
    opacity: 0.75;
}

.res-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    color: inherit;
    text-decoration: none;
}

.res-row:last-child {
    border-bottom: none;
}

.res-row:hover {
    background-color: #fafafa;
    color: inherit;
}

.res-date {
    flex: 0 0 38px;
    text-align: center;
    line-height: 1.1;
}

.res-date strong {
    display: block;
    font-size: 1.15rem;
}

.res-date span {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
}

.res-teams {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.res-teams:hover {
    color: inherit;
}

.res-team {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.res-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.res-score {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.res-win .res-name,
.res-win .res-score {
    font-weight: 700;
    color: var(--app-black);
}

.res-lose .res-name,
.res-lose .res-score {
    color: #8a8a8a;
}

/* La squadra "di casa" della pagina (team-detail): si riconosce a colpo d'occhio
   anche nelle partite ancora da giocare, dove non c'e' vinta/persa. */
.res-mine .res-name {
    font-weight: 700;
}

.res-meta {
    font-size: 0.7rem;
    color: #888;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.res-badge-amichevole {
    background-color: var(--app-gold);
    color: var(--app-black);
    border-radius: 4px;
    padding: 1px 6px;
    font-weight: 700;
    margin-right: 4px;
}

.res-chevron {
    flex: 0 0 auto;
    color: #ccc;
    font-size: 0.8rem;
}

.res-empty {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    color: #777;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.app-card .res-empty {
    border-radius: 0;
    box-shadow: none;
    padding: 24px 20px;
}

.res-empty i {
    font-size: 2rem;
    color: var(--app-gold);
    margin-bottom: 12px;
    display: block;
}
