/* soccer-style.css - v1.1 con Mejoras de Color */

:root {
    --primary-color: #3d5afe;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --surface-color: #ffffff;
    --background-color: #f8f9fa;
    --premium-color: #FFC107;
}

body {
    background-color: var(--background-color);
}

.soccer-container {
    padding: 10px 0;
}

/* 1. Sports Nav */
.sports-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: var(--surface-color);
    border-radius: 12px;
    margin: 0 10px 15px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.sport-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
}
.sport-link img {
    width: 28px;
    height: 28px;
}
.sport-link.active {
    color: var(--primary-color);
}
.sport-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 2. Date Slider */
.date-slider-wrapper {
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
}
.date-slider-wrapper::-webkit-scrollbar {
    display: none;
}
.date-slider {
    display: flex;
    gap: 10px;
}
.date-item {
    flex: 0 0 auto;
    padding: 10px 15px;
    border-radius: 20px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-in-out;
}
.date-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(61, 90, 254, 0.3);
}
.date-day {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}
.date-number {
    font-size: 1rem;
    font-weight: 700;
}

/* 3. League Filters */
.league-filters-wrapper {
    overflow-x: auto;
    padding: 15px 10px;
    scrollbar-width: none;
}
.league-filters-wrapper::-webkit-scrollbar {
    display: none;
}
.league-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}
.league-filter {
    flex: 0 0 auto;
    padding: 8px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
.league-filter.all-leagues {
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.league-filter img {
    width: 24px;
    height: 24px;
}
.league-filter.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}
.league-filter.all-leagues.active {
    background-color: var(--primary-color);
    color: white;
}


/* 4. Matches List */
.matches-list {
    padding: 0 10px;
}
.league-group {
    margin-bottom: 25px;
}
/* -- NUEVO ESTILO PARA LA CABECERA DE LIGA -- */
.league-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background-color: var(--text-dark);
    border-radius: 8px;
}
.league-header img {
    width: 20px;
    height: 20px;
}
.league-header span {
    font-weight: 700;
    color: white; /* Color de texto blanco para contraste */
}
.match-card {
    display: flex;
    align-items: center;
    background-color: var(--surface-color);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid transparent; /* Borde base transparente */
    transition: border-color 0.3s ease;
}
/* -- NUEVO ESTILO PARA PARTIDOS PREMIUM -- */
.match-card.premium {
    border-left-color: var(--premium-color);
}
.match-info {
    flex-grow: 1;
}
.match-time {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
}
.match-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.team-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.team-row img {
    width: 24px;
    height: 24px;
}
.team-row span {
    font-weight: 600;
}
.match-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.details-open-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
}
.details-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 4px;
}
.open-text {
    background-color: #e9ecef; /* Color de fondo ligeramente más oscuro */
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.8rem;
}
.star-icon {
    font-size: 1.2rem;
    color: var(--border-color);
}
.star-icon.premium {
    color: var(--premium-color);
}
.loader, .no-matches {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-weight: 600;
}