/* Tooltips mejorados para encabezados de métricas con glosario */
.metric-header-with-tooltip {
    position: relative;
}

.metric-header-with-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(44, 62, 80, 0.98);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    width: 350px;
    max-width: 90vw;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    margin-bottom: 8px;
    text-align: left;
    font-family: 'Commissioner', sans-serif;
}

.metric-header-with-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(44, 62, 80, 0.98);
    z-index: 10000;
    pointer-events: none;
    margin-bottom: -8px;
}

/* ============= COMPARADOR DE JUGADORES ============= */

/* Estilos para el buscador de jugadores */
.comp-player-search .Select-control {
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
    transition: all 0.2s ease;
}

.comp-player-search .Select-control:hover {
    border-color: #0d6efd !important;
}

.comp-player-search .Select-menu-outer {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: none;
    margin-top: 4px;
}

/* Hover effect en opciones del dropdown */
.comp-player-search .VirtualizedSelectOption:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

/* Estilo para botones de sección activos */
.comp-section-btn-active {
    background-color: #1e3d59 !important;
    color: white !important;
    border-color: #1e3d59 !important;
    box-shadow: 0 2px 8px rgba(30, 61, 89, 0.3);
}

/* Animación de hover en botones de sección */
.comp-section-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Contenedor del comparador */
.comparador-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
}

/* Cards de jugadores con efecto hover */
.player-card-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-card-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
}

/* Badge de porcentaje de minutos */
.badge-minutes {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 12px;
}

/* Scatter plots más compactos */
.scatter-metric-label {
    font-size: 11px;
    font-weight: 600;
    color: #1e3d59;
    margin-bottom: 2px;
}

/* Animación de carga suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comp-fade-in {
    animation: fadeInUp 0.3s ease-out;
}

/* Responsive ajustes */
@media (max-width: 768px) {
    .comparador-header {
        font-size: 18px !important;
    }
    
    .player-card-box {
        margin-bottom: 15px;
    }
}

/* ============= NOTA SCOUTS HOVER ============= */
.nota-scouts-hover:hover {
    background-color: #e3f2fd !important;
    cursor: pointer;
}

.nota-scouts-hover::after {
    content: "ðŸ”";
    font-size: 10px;
    position: absolute;
    top: 2px;
    right: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nota-scouts-hover:hover::after {
    opacity: 1;
}
