﻿/**
 * Estilos para la página de anotadores
 * Diseño moderno, responsive y visualmente atractivo
 */

/* Contenedor principal */
.anotadores-page {
    font-family: 'Roboto', Arial, sans-serif;
    margin-bottom: 30px;
}

.anotadores-container {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Cabecera de la tabla */
.anotadores-table-header {
    background: linear-gradient(135deg, var(--prim-back), var(--seg-back));
    color: white;
    padding: 15px 10px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.column-title {
    padding: 0 5px;
}

/* Lista de anotadores */
.anotadores-list {
    padding: 0;
}

/* Item individual de anotador */
.anotador-item {
    padding: 12px 10px;
    border-bottom: 1px solid #f3f3f3;
    transition: all 0.2s ease;
}

    .anotador-item:nth-child(odd) {
        background-color: #f9f9f9;
    }

    .anotador-item:hover {
        background-color: #f5f5f5;
        transform: translateX(3px);
    }

    .anotador-item:last-child {
        border-bottom: none;
    }

/* Estilos para las medallas (top 3) */
.medalla-oro {
    border-left: 4px solid #FFD700;
    background: linear-gradient(to right, rgba(255, 215, 0, 0.05), transparent) !important;
}

.medalla-plata {
    border-left: 4px solid #C0C0C0;
    background: linear-gradient(to right, rgba(192, 192, 192, 0.05), transparent) !important;
}

.medalla-bronce {
    border-left: 4px solid #CD7F32;
    background: linear-gradient(to right, rgba(205, 127, 50, 0.05), transparent) !important;
}

/* Posición/Ranking */
.anotador-position {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto;
    color: #555;
}

.medalla-oro .anotador-position {
    background-color: #FFF7CC;
    color: #B07E00;
    border: 1px solid #FFD700;
}

.medalla-plata .anotador-position {
    background-color: #F8F8F8;
    color: #757575;
    border: 1px solid #C0C0C0;
}

.medalla-bronce .anotador-position {
    background-color: #F9EAE1;
    color: #8B5A2B;
    border: 1px solid #CD7F32;
}

/* Jugador */
.anotador-jugador {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.anotador-foto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #f1f1f1;
}

    .anotador-foto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.anotador-nombre {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    color: var(--prim-back);
    margin-top: 5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Equipo */
.anotador-equipo {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 15px;
}

    .anotador-equipo span {
        font-size: 0.9rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* Goles */
.anotador-goles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.goles-numero {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.medalla-oro .goles-numero {
    color: #B07E00;
}

.medalla-plata .goles-numero {
    color: #757575;
}

.medalla-bronce .goles-numero {
    color: #8B5A2B;
}

/* Barra de progreso para visualizar goles */
.goles-barra-container {
    width: 100%;
    height: 8px;
    background-color: #f1f3f5;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.goles-barra {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(to right, var(--prim-back), var(--seg-back));
}

.medalla-oro .goles-barra {
    background: linear-gradient(to right, #FFD700, #FFC400);
}

.medalla-plata .goles-barra {
    background: linear-gradient(to right, #C0C0C0, #A0A0A0);
}

.medalla-bronce .goles-barra {
    background: linear-gradient(to right, #CD7F32, #B06728);
}

/* Responsive */
@media (max-width: 767px) {
    .anotador-foto {
        width: 45px;
        height: 45px;
        margin-bottom: 5px;
    }

    .anotador-nombre {
        font-size: 0.8rem;
    }

    .goles-numero {
        font-size: 1.2rem;
    }

    .anotador-position {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .anotadores-table-header {
        padding: 10px 5px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .anotador-foto {
        width: 35px;
        height: 35px;
    }

    .anotador-nombre {
        font-size: 0.7rem;
    }

    .anotador-item {
        padding: 8px 5px;
    }

    .anotador-position {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }
}
