/**
 * ========================================
 * TOOLTIPS MODERNOS CON JAVASCRIPT
 * ========================================
 * Sistema de tooltips manejado por tooltips.js
 * Este archivo mantiene solo animaciones y estilos auxiliares
 */

/* Los tooltips ahora son manejados completamente por JavaScript (tooltips.js) */
/* No se requiere CSS adicional ya que los estilos se aplican inline */

/* Animación de glow para tooltips especiales */
@keyframes tooltipGlow {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.25),
            0 2px 8px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 4px 24px rgba(100, 180, 255, 0.15),
            0 2px 8px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.15);
    }
}

/* Ocultar título nativo del navegador - manejado por JS */
[title] {
    cursor: pointer;
}

/* ========================================
 * TOOLTIP DE COORDENADAS DEL MOUSE
 * ======================================== */
.coordinates-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease;
    line-height: 1.3;
    opacity: 0.7;
}

.coordinates-tooltip:hover {
    opacity: 0.9;
}

.coordinates-tooltip::before {
    content: '📍';
    margin-right: 5px;
    font-size: 9px;
    opacity: 0.8;
}

/* ========================================
 * TOOLTIP DE ESTADÍSTICAS DE USUARIO
 * Paleta: Verde Esmeralda (#10b981), Naranja Brillante (#FF8800), Verde Oscuro (#047857)
 * ======================================== */
.user-stats-tooltip {
    position: fixed;
    width: 340px;
    background: linear-gradient(145deg, rgba(4, 120, 87, 0.98), rgba(5, 86, 69, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(16, 185, 129, 0.2);
    z-index: 10000;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tooltip-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 136, 0, 0.2);
    border: 1px solid rgba(255, 136, 0, 0.4);
    border-radius: 8px;
    color: rgba(255, 136, 0, 0.9);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1;
}

.tooltip-close-btn:hover {
    background: rgba(255, 136, 0, 0.3);
    color: rgba(255, 136, 0, 1);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.3);
}

.user-stats-tooltip .tooltip-header {
    padding: 20px 20px 16px 20px;
    border-bottom: 2px solid;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.1), transparent);
}

.user-stats-tooltip .tooltip-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(16, 185, 129, 0.9);
    margin-bottom: 6px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.user-stats-tooltip .tooltip-user {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-stats-tooltip .tooltip-body {
    padding: 20px;
}

.user-stats-tooltip .stat-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.user-stats-tooltip .stat-item:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.user-stats-tooltip .stat-item:last-child {
    margin-bottom: 0;
}

.user-stats-tooltip .stat-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border-color: rgba(16, 185, 129, 0.3);
}

.user-stats-tooltip .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.2), rgba(255, 136, 0, 0.1));
    border: 1px solid rgba(255, 136, 0, 0.3);
}

.user-stats-tooltip .stat-content {
    flex: 1;
    min-width: 0;
}

.user-stats-tooltip .stat-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(16, 185, 129, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.user-stats-tooltip .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2px;
}

.user-stats-tooltip .stat-subtext {
    font-size: 11px;
    font-weight: 500;
    color: rgba(16, 185, 129, 0.6);
    margin-top: 4px;
}

.user-stats-tooltip .stat-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
    margin: 16px 0;
}

.user-stats-tooltip .tooltip-footer {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.3), rgba(5, 86, 69, 0.3));
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.user-stats-tooltip .tooltip-footer-text {
    font-size: 13px;
    color: rgba(16, 185, 129, 0.9);
    text-align: center;
}

.user-stats-tooltip .tooltip-footer-text strong {
    color: #10b981;
    font-weight: 700;
}
