/* fechas/fechas.css */

.fechas-hero {
    background: linear-gradient(135deg, var(--accent-red) 0%, #aa0000 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px; /* offset navbar */
    border-bottom: 4px solid var(--border);
}

.fechas-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.fechas-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.fechas-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.fechas-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent-red);
}

.filter-btn.active {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.historico-round {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
}

.historico-round-header {
    background: rgba(232, 64, 64, 0.1);
    color: var(--text-base);
    padding: 15px 20px;
    font-weight: 800;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.historico-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
    cursor: pointer;
}

.historico-match:last-child {
    border-bottom: none;
}

.historico-match:hover {
    background: var(--bg-color);
}

.historico-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.historico-team.home {
    justify-content: flex-end;
    text-align: right;
}

.historico-team.away {
    justify-content: flex-start;
    text-align: left;
}

.historico-score {
    width: 100px;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-base);
}

.historico-score small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .historico-match {
        flex-direction: column;
        gap: 10px;
    }
    .historico-team.home, .historico-team.away {
        justify-content: center;
        width: 100%;
    }
    .historico-score {
        order: -1;
        margin-bottom: 5px;
    }
}

/* Tabla Detallada */
.standings-table.detailed {
    min-width: 800px; /* Forzar scroll horizontal en móviles */
}

.standings-table.detailed th, 
.standings-table.detailed td {
    padding: 12px 10px;
    text-align: center;
    font-size: 0.9rem;
}

.standings-table.detailed th {
    background: rgba(232, 64, 64, 0.05);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.standings-table.detailed td strong {
    color: var(--accent-red);
    font-weight: 800;
}

@media (max-width: 1100px) {
    .fechas-container {
        max-width: 100%;
    }
}
