/* ========== Scores Page ========== */

.scores-filters {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Horizontal scroll for dates */
.horizontal-scroll-dates {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.horizontal-scroll-dates::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-dates::-webkit-scrollbar-thumb {
    background-color: rgba(15, 23, 42, 0.3);
    border-radius: 999px;
}

/* Date pills */

.date-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background-color: var(--light-grey);
    color: var(--dark-grey);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.date-pill:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.date-pill.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Sport filter */

.scores-sport-filter {
    flex: 0 0 auto;
}

.scores-sport-filter label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--dark-grey);
}

.scores-sport-label {
    font-weight: 500;
}

.scores-sport-filter select {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background-color: var(--white);
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Scores list wrapper */

.scores-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Inside game cards on scores page */

.scores-list .game-card,
.scores-list .game-card-body,
.scores-list .game-opponent,
.scores-list .scores-opponent-block {
    text-align: left;
}

.scores-opponent-block {
    display: grid;
    grid-template-columns: auto 1fr min-content;
    row-gap: 0.25rem;
    column-gap: 1.5rem;
    align-items: center;
    justify-content: flex-start; 
}

.scores-team-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

}

.scores-team-name {
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.scores-team-name-line {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    text-align: left;
}

.scores-team-rank {
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
}

.scores-team-rank-class {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}

.scores-team-record {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--dark-grey);
    opacity: 0.72;
}

@media (max-width: 480px) {
    .scores-team-name-line {
        gap: 0.25rem;
    }

    .scores-team-record {
        font-size: 0.72rem;
    }
}

.scores-team-score {
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.scores-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--white);     
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Winning score: extra bold & slightly darker */
.scores-team-score-win {
    font-weight: 800;
    color: var(--primary-blue);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.12);
}

/* Losing score: slightly muted */
.scores-team-score-loss {
    opacity: 0.75;
}

/* Tie: neutral treatment */
.scores-team-score-tie {
    opacity: 0.9;
}


/* Slight tweak for the "Final" badge variant */
.game-score-badge.game-score-final {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Date picker beside filters */

.scores-date-picker {
    flex: 0 0 auto;
}

.scores-date-picker label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--dark-grey);
}

.scores-date-label {
    font-weight: 500;
}

.scores-date-picker input[type="date"] {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background-color: var(--white);
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}
