/* matches.css — Grid de partidas futuras */

/* ─── GRID ─────────────────────────────────────────────────── */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 10px;
    padding: 4px 0;
}

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

/* ─── CARD ─────────────────────────────────────────────────── */
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.match-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-2px);
}

/* ─── HEADER (liga, hora, status) ──────────────────────────── */
.match-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.match-header .league {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-body);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}
.match-header .time {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    margin-left: auto;
}
.match-header .status {
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.match-header .status.scheduled { color: #60a5fa; background: #1d4ed820; }
.match-header .status.live       { color: #ef4444; background: #ef444420; }
.match-header .status.finished   { color: var(--primary); background: rgba(var(--primary-rgb), 0.08); }

/* ─── SCORE / TEAMS ────────────────────────────────────────── */
.match-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.match-score .team {
    flex: 1;
    min-width: 0;
}
.match-score .team:last-child {
    text-align: right;
}
.match-score .team .name {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-score .team .sub {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-score .score {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    min-width: 50px;
    flex-shrink: 0;
}
.match-score .score .dash {
    color: var(--text-muted);
    font-weight: 400;
}

/* ─── PREVIEW (análise) ────────────────────────────────────── */
.match-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.match-preview .pick {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}
.match-preview .pick .value {
    font-weight: 600;
    color: var(--primary);
}

/* ─── LEAGUE SECTION HEADER ────────────────────────────────── */
.live-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 4px 0;
    grid-column: 1 / -1;
}
.live-section-header span:first-child {
    font-family: var(--font-display);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}
.live-section-header span:nth-child(2) {
    background: var(--bg-body);
    padding: 2px 12px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    white-space: nowrap;
}
.live-section-header span:nth-child(3) {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}
