/**
 * Estilos para el frontend del plugin
 * Keylimetec - Reporte SportsPress
 */

/* Contenedor general */
.klrsp-top-scorers,
.klrsp-players-report,
.klrsp-league-stats {
    margin: 20px 0;
    font-family: inherit;
}

/* Top Goleadores */
.klrsp-top-scorers {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.klrsp-scorers-list {
    display: flex;
    flex-direction: column;
}

.klrsp-scorer-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.klrsp-scorer-item:hover {
    background-color: #f8f9fa;
}

.klrsp-scorer-item:last-child {
    border-bottom: none;
}

.klrsp-scorer-position {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.klrsp-scorer-position:nth-child(1) {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.klrsp-scorer-item:nth-child(2) .klrsp-scorer-position {
    background: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%);
}

.klrsp-scorer-item:nth-child(3) .klrsp-scorer-position {
    background: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%);
}

.klrsp-scorer-info {
    flex: 1;
    margin-right: 20px;
}

.klrsp-scorer-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.klrsp-scorer-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.klrsp-team-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.klrsp-scorer-stats {
    text-align: right;
    flex-shrink: 0;
}

.klrsp-goals-count {
    font-size: 32px;
    font-weight: 700;
    color: #28a745;
    line-height: 1;
}

.klrsp-goals-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.klrsp-additional-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.klrsp-additional-stats span {
    font-size: 11px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Tabla de jugadores */
.klrsp-players-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.klrsp-players-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.klrsp-players-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.klrsp-players-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.klrsp-players-table tbody tr:hover {
    background-color: #f8f9fa;
}

.klrsp-players-table td {
    padding: 15px 12px;
    vertical-align: middle;
}

.klrsp-position {
    font-weight: 700;
    color: #667eea;
    font-size: 16px;
}

.klrsp-player-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.klrsp-goals {
    color: #28a745;
    font-weight: 700;
    font-size: 16px;
}

.klrsp-assists,
.klrsp-matches,
.klrsp-average {
    color: #6c757d;
    font-size: 14px;
}

.klrsp-toggle-details {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.klrsp-toggle-details:hover {
    background: #5a67d8;
}

/* Detalles de eventos */
.klrsp-player-events {
    background: #f8f9fa;
    padding: 20px;
    border-top: 3px solid #667eea;
}

.klrsp-player-events h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.klrsp-events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.klrsp-event-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
}

.klrsp-event-item:last-child {
    border-bottom: none;
}

.klrsp-event-title {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.klrsp-event-date {
    color: #6c757d;
    font-size: 12px;
}

.klrsp-event-team {
    background: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.klrsp-event-goals {
    background: #28a745;
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.klrsp-event-assists {
    background: #17a2b8;
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* Estadísticas de liga */
.klrsp-league-stats {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 20px 0;
}

.klrsp-stats-title h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 15px;
}

.klrsp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.klrsp-stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.klrsp-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.klrsp-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    margin-bottom: 8px;
}

.klrsp-stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Mensaje de no datos */
.klrsp-no-data {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
    margin: 20px 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .klrsp-scorer-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .klrsp-scorer-position {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .klrsp-scorer-info {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .klrsp-scorer-stats {
        text-align: center;
    }
    
    .klrsp-players-table {
        font-size: 12px;
    }
    
    .klrsp-players-table th,
    .klrsp-players-table td {
        padding: 8px 6px;
    }
    
    .klrsp-event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .klrsp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .klrsp-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .klrsp-players-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}



