/* ========================================
   CLASIFICACIÓN MODERNA - TABLA MEJORADA
   Colores: Rojo, Blanco, Negro
   ======================================== */

.standings-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

/* ===== CABECERA ===== */
.standings-modern thead {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.standings-modern thead tr:first-child th {
    padding: 16px 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 3px solid #dc3545;
}

.standings-modern thead tr.subheader th {
    padding: 12px 10px;
    font-weight: 600;
    font-size: 11px;
    background: rgba(220, 53, 69, 0.15);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== COLUMNAS ===== */
.col-pos {
    width: 70px;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}

.col-team {
    min-width: 140px;
    max-width: 180px;
    padding-left: 12px !important;
    border-right: 1px solid #f0f0f0;
}

.col-riders {
    min-width: 200px;
    max-width: 280px;
    padding: 8px 10px !important;
    border-right: 1px solid #f0f0f0;
}

.col-sprint,
.col-race,
.col-podium,
.col-total {
    width: 75px;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}

.col-total {
    width: 85px;
    font-weight: 700;
}

.col-victories,
.col-podiums {
    width: 55px;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}

.col-actions {
    width: 100px;
    text-align: center;
}

/* ===== BADGES DE POSICIÓN ===== */
.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.position-1 .position-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
    transform: scale(1.1);
    font-size: 18px;
}

.position-2 .position-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.4);
    transform: scale(1.05);
}

.position-3 .position-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3);
}

/* ===== INFO DE EQUIPO ===== */
.team-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-name {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
}

.you-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* ===== COLUMNA DE PILOTOS ===== */
.riders-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.4;
}

.rider-mini {
    display: inline-block;
    font-size: 11px;
    color: #666;
    padding: 2px 6px;
    background: #f8f8f8;
    border-radius: 3px;
    white-space: nowrap;
}

.rider-mini .rider-number {
    font-weight: 700;
    color: #dc3545;
    margin-right: 2px;
}

.rider-mini .rider-name {
    color: #333;
}

/* ===== FILAS DEL TBODY ===== */
.standings-modern tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    background: white;
}

.standings-modern tbody tr:hover {
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.standings-modern tbody td {
    padding: 14px 10px;
    vertical-align: middle;
}

/* ===== FILA DEL USUARIO ACTUAL ===== */
.standings-my-row {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.06) 0%, rgba(220, 53, 69, 0.02) 100%);
    border-left: 5px solid #dc3545;
}

.standings-my-row:hover {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.03) 100%);
}

/* ===== TOP 3 DESTACADO ===== */
.standings-modern tbody tr.position-1 {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.02) 100%);
    border-left: 3px solid #dc3545;
}

.standings-modern tbody tr.position-2 {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.01) 100%);
    border-left: 3px solid #dc3545;
}

.standings-modern tbody tr.position-3 {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.03) 0%, transparent 100%);
    border-left: 3px solid #dc3545;
}

/* ===== NÚMEROS DE PUNTOS ===== */
.col-sprint,
.col-race,
.col-podium,
.col-total {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.col-total {
    font-size: 17px;
    color: #dc3545;
    font-weight: 800;
}

.col-victories,
.col-podiums {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ===== BOTÓN VER ===== */
.standings-modern .btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.standings-modern .btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.standings-modern .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.standings-modern .btn-secondary {
    background: #6c757d;
    color: white;
}

/* ===== ALTERNANCIA DE FILAS ===== */
.standings-modern tbody tr:nth-child(even) {
    background: #fafafa;
}

.standings-modern tbody tr:nth-child(even):hover {
    background: #f5f5f5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .standings-modern {
        font-size: 13px;
    }
    
    .col-team {
        min-width: 120px;
    }
    
    .col-riders {
        min-width: 180px;
    }
    
    .position-badge {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .team-name {
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .standings-modern {
        font-size: 12px;
    }
    
    .col-team {
        min-width: 110px;
    }
    
    .col-riders {
        min-width: 160px;
        max-width: 200px;
    }
    
    .rider-mini {
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .position-badge {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .team-name {
        font-size: 13px;
    }
    
    .col-total {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .standings-modern {
        font-size: 11px;
    }
    
    .standings-modern thead tr:first-child th {
        padding: 12px 8px;
        font-size: 11px;
    }
    
    .standings-modern thead tr.subheader th {
        padding: 10px 8px;
        font-size: 10px;
    }
    
    .standings-modern tbody td {
        padding: 10px 8px;
    }
    
    .col-pos {
        width: 55px;
    }
    
    .col-team {
        min-width: 100px;
    }
    
    .col-riders {
        min-width: 140px;
        max-width: 180px;
    }
    
    .col-sprint,
    .col-race,
    .col-podium {
        width: 60px;
    }
    
    .col-total {
        width: 70px;
        font-size: 14px;
    }
    
    .col-victories,
    .col-podiums {
        width: 45px;
        font-size: 14px;
    }
    
    .position-badge {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .team-name {
        font-size: 12px;
    }
    
    .you-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 768px) {
    .standings-modern {
        font-size: 10px;
    }
    
    .col-team {
        min-width: 90px;
    }
    
    .col-riders {
        display: none; /* Ocultar pilotos en móvil */
    }
    
    .rider-mini {
        font-size: 9px;
    }
    
    .team-name {
        font-size: 11px;
    }
    
    .you-badge {
        display: none;
    }
    
    .col-sprint,
    .col-race,
    .col-podium {
        width: 50px;
    }
    
    .col-total {
        width: 60px;
        font-size: 13px;
    }
    
    .position-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .standings-modern .btn-sm {
        padding: 6px 10px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .standings-modern {
        font-size: 9px;
    }
    
    .col-victories,
    .col-podiums {
        width: 38px;
    }
    
    .col-actions {
        width: 80px;
    }
}

